Skip to content

Commit

Permalink
Merge pull request #246 from cparmar/cparmar1/fix-s3-sse-params
Browse files Browse the repository at this point in the history
Adding missing server_side_encryption and server_side_encryption_kms_…
  • Loading branch information
phamann authored Jun 3, 2020
2 parents 47a9317 + 806a7d4 commit 0250d69
Showing 1 changed file with 17 additions and 15 deletions.
32 changes: 17 additions & 15 deletions fastly/resource_fastly_service_v1.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 0250d69

Please sign in to comment.