Skip to content

Commit

Permalink
Merge pull request #5107 from domwong/bugfix/s3_update_acl
Browse files Browse the repository at this point in the history
Only update acl for existing buckets, not new ones
  • Loading branch information
bflad committed Jul 9, 2018
2 parents daa854e + 7799581 commit fa1f6b2
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 @@ -589,7 +589,7 @@ func resourceAwsS3BucketUpdate(d *schema.ResourceData, meta interface{}) error {
return err
}
}
if d.HasChange("acl") {
if d.HasChange("acl") && !d.IsNewResource() {
if err := resourceAwsS3BucketAclUpdate(s3conn, d); err != nil {
return err
}
Expand Down

0 comments on commit fa1f6b2

Please sign in to comment.