Skip to content

Commit

Permalink
Only set aws_s3_object server_side_encryption if not empty
Browse files Browse the repository at this point in the history
  • Loading branch information
rifelpet committed Sep 7, 2024
1 parent 6dd9305 commit 06c4986
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion util/pkg/vfs/s3fs.go
Original file line number Diff line number Diff line change
Expand Up @@ -752,10 +752,12 @@ func (p *S3Path) RenderTerraform(w *terraformWriter.TerraformWriter, name string
Bucket: p.Bucket(),
Key: p.Key(),
Content: content,
SSE: &sseVal,
Acl: &aclVal,
Provider: terraformWriter.LiteralTokens("aws", "files"),
}
if sseVal != "" {
tf.SSE = &sseVal
}
return w.RenderResource("aws_s3_object", name, tf)
}

Expand Down

0 comments on commit 06c4986

Please sign in to comment.