Open atorrescogollo opened 3 months ago
This issue has been automatically marked as stale because it has been open 30 days with no activity. Remove stale label or comment or this issue will be closed in 10 days
Remove stale label
This issue has been automatically marked as stale because it has been open 30 days with no activity. Remove stale label or comment or this issue will be closed in 10 days
Remove stale label
Is your request related to a problem? Please describe.
AWS recommends to use control_object_ownership and stop using ACLs: https://aws.amazon.com/blogs/security/iam-policies-and-bucket-policies-and-acls-oh-my-controlling-access-to-s3-resources/
However, the module sets
var.control_object_ownership = false
as the default: https://github.com/terraform-aws-modules/terraform-aws-s3-bucket/blob/v4.1.2/variables.tf#L301-L305If I want to deploy a simple bucket, it should use bucket policies by default.
Describe the solution you'd like.
Default to bucket policies:
I think the module should use what AWS recommends by default (also, that's what AWS console creates by default) and legacy behaviours should be stated explicitly by actively disabling the
var.control_object_ownership
.Describe alternatives you've considered.
Now, to use AWS defaults and recommendation, I have to explicitly set the
var.control_object_ownership=true
, which is anoying.Additional context