Skip to content

Commit

Permalink
#2217: re-enable default encryption after disabling in via UI
Browse files Browse the repository at this point in the history
  • Loading branch information
trung authored and James committed Dec 17, 2017
1 parent 9cfd2fe commit 39bf66a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions aws/resource_aws_s3_bucket.go
Original file line number Diff line number Diff line change
Expand Up @@ -993,6 +993,7 @@ func resourceAwsS3BucketRead(d *schema.ResourceData, meta interface{}) error {
if err != nil {
if isAWSErr(err, "ServerSideEncryptionConfigurationNotFoundError", "encryption configuration was not found") {
log.Printf("[DEBUG] Default encryption is not enabled for %s", d.Id())
d.Set("server_side_encryption_configuration", []map[string]interface{}{})
} else {
return err
}
Expand Down

0 comments on commit 39bf66a

Please sign in to comment.