diff --git a/fastly/resource_fastly_service_v1.go b/fastly/resource_fastly_service_v1.go index a40ea261a..b4a239dc7 100644 --- a/fastly/resource_fastly_service_v1.go +++ b/fastly/resource_fastly_service_v1.go @@ -4061,21 +4061,23 @@ func flattenS3s(s3List []*gofastly.S3) []map[string]interface{} { for _, s := range s3List { // Convert S3s to a map for saving to state. ns := map[string]interface{}{ - "name": s.Name, - "bucket_name": s.BucketName, - "s3_access_key": s.AccessKey, - "s3_secret_key": s.SecretKey, - "path": s.Path, - "period": s.Period, - "domain": s.Domain, - "gzip_level": s.GzipLevel, - "format": s.Format, - "format_version": s.FormatVersion, - "timestamp_format": s.TimestampFormat, - "redundancy": s.Redundancy, - "response_condition": s.ResponseCondition, - "message_type": s.MessageType, - "placement": s.Placement, + "name": s.Name, + "bucket_name": s.BucketName, + "s3_access_key": s.AccessKey, + "s3_secret_key": s.SecretKey, + "path": s.Path, + "period": s.Period, + "domain": s.Domain, + "gzip_level": s.GzipLevel, + "format": s.Format, + "format_version": s.FormatVersion, + "timestamp_format": s.TimestampFormat, + "redundancy": s.Redundancy, + "response_condition": s.ResponseCondition, + "message_type": s.MessageType, + "placement": s.Placement, + "server_side_encryption": s.ServerSideEncryption, + "server_side_encryption_kms_key_id": s.ServerSideEncryptionKMSKeyID, } // prune any empty values that come from the default string value in structs