Skip to content

Commit

Permalink
Merge pull request #6873 from terraform-providers/b-aws_s3_bucket-get…
Browse files Browse the repository at this point in the history
…-acceleration-methodnotfound

resource/aws_s3_bucket: Skip MethodNotAllowed error for missing S3 Bucket Acceleration functionality (eu-north-1 support)
  • Loading branch information
bflad authored Dec 19, 2018
2 parents 572be8b + d2fc0fe commit 25b4e92
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion aws/resource_aws_s3_bucket.go
Original file line number Diff line number Diff line change
Expand Up @@ -870,7 +870,7 @@ func resourceAwsS3BucketRead(d *schema.ResourceData, meta interface{}) error {
})

// Amazon S3 Transfer Acceleration might not be supported in the region
if err != nil && !isAWSErr(err, "UnsupportedArgument", "") {
if err != nil && !isAWSErr(err, "MethodNotAllowed", "") && !isAWSErr(err, "UnsupportedArgument", "") {
return fmt.Errorf("error getting S3 Bucket acceleration configuration: %s", err)
}
if accelerate, ok := accelerateResponse.(*s3.GetBucketAccelerateConfigurationOutput); ok {
Expand Down

0 comments on commit 25b4e92

Please sign in to comment.