Configuring LocalStack with AWS S3 dotnet web api
So im trying to setup AmazonS3 with one of my APIs, the endpoint essentially is supposed to upload an image to localstack thats inside a docker container.
My issue is with the configuration. I was searching for a resolution and apparently AWS SDK automatically appends the bucket name alongside the url of the endpoint that its trying to interact with.
The resolution I found online on Github Issues is to configure AmazonS3Config and set ForcePathStyle to true.
The issue im having is that it's not available anymore and I'm not entirely sure how else to configure it in Program.cs.
Im using dotnet 7, this is what i currently have in my startup.
The error im having is:
Essentailly the issue im having is with this controller that basically craps some files and is supposed to upload them to s3
1 Reply
Also, this is the config that im passing to the container, im not sure if that could be the problem