Closed joe4dev closed 1 year ago
This seems related to patchS3BucketLocationResponse()
https://github.com/localstack/serverless-localstack/blob/master/src/index.js#LL512C3-L512C34
LocalStack returns a 400 (InvalidLocationConstraint)
when using the us-east-1
region with the new S3 provider.
It is a well-known behavior of the S3 API leading to confusion because other regions than us-east-1
(default region) work well:
Deployment through
make deploy
fails against the new S3 provider (PROVIDER_OVERRIDE_S3=v2
) with the following error:Starting point
This could be related to the patching of the LocationConstraint in serverless-localstack. We should probably also check the demo against AWS (see docs related to https://github.com/aws/aws-sdk-js/issues/3647), maybe the new S3 enforces parity related to this location constraint behavior.