Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

LocationConstraint should not be set when region is configured as us-east-1 #366

Open
dan-lind opened this issue Oct 21, 2022 · 0 comments

Comments

@dan-lind
Copy link
Contributor

The following line unconditionally sets the LocationConstraint if a region is specified.
https://github.com/jariz/gatsby-plugin-s3/blob/master/gatsby-plugin-s3/src/bin.ts#L199

But per the S3 API documentation, us-east-1 is not a valid LocationConstraint.
https://docs.aws.amazon.com/AmazonS3/latest/API/API_CreateBucketConfiguration.html

When we configure our region to be us-east-1 in the plugin, AWS responds with "The specified location-constraint is not valid"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant