From 39bf66abd49f9d8fb3581cdc77b45cc180503202 Mon Sep 17 00:00:00 2001 From: trung Date: Tue, 12 Dec 2017 20:27:56 -0500 Subject: [PATCH] #2217: re-enable default encryption after disabling in via UI --- aws/resource_aws_s3_bucket.go | 1 + 1 file changed, 1 insertion(+) diff --git a/aws/resource_aws_s3_bucket.go b/aws/resource_aws_s3_bucket.go index a2ba3b91bb2..b0b26680318 100644 --- a/aws/resource_aws_s3_bucket.go +++ b/aws/resource_aws_s3_bucket.go @@ -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 }