Skip to content

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

@dan-lind

Description

@dan-lind

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"

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions