I can’t figure out how to set permissions on an S3 bucket after creating it.
The s3 module will create a bucket (mode: create), but if I run it twice, the second time it says that the bucket already exists and does nothing, so the permissions don’t change. And the s3 module can’t set versioning on the bucket.
aws_s3 will also create a bucket (state: present), and set it to versioning, but doesn’t have a way to set the permissions.
I’m starting to think that the only way to set the permissions is to create a policy and apply it using aws_s3, which is way more complicated that just making the bucket “public-read”.
Regards, K.