Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update template.yaml to use BucketPolicy #258

Merged
merged 1 commit into from
Feb 13, 2024

Conversation

sambler
Copy link
Contributor

@sambler sambler commented Feb 10, 2024

Replace legacy S3 AccessControl with a bucket policy.

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

@sambler
Copy link
Contributor Author

sambler commented Feb 12, 2024

ignore the noise, there is already a bucket policy in place that works, so bring this down to removing the legacy AccessControl

@ottokruse
Copy link
Collaborator

Sure, thanks. What's the benefit of not specifying private? Just cleaner (fine reason) as ACLs are deprecated, or will there be an actual effect too?

@sambler
Copy link
Contributor Author

sambler commented Feb 13, 2024

At the time I got a fail to create bucket, needed to remove it to create the stack.

A quick test of only a bucket works with sam and cfn, so it may have been a bucket policy I added that conflicted with the Accesscontrol.

@ottokruse
Copy link
Collaborator

Okay sure. And what's the benefit of removing AccessControl=Private now from the template? What will that improve?

I think it's a good idea because that property is deprecated but just wondering if it has a tangible benefit besides that.

@sambler
Copy link
Contributor Author

sambler commented Feb 13, 2024

Turns out it would only make it easier to add other bucket policies, so not directly effecting this stack now.

I only submitted because I thought having the AccessControl was preventing the stack create, which I found to be a conflict with my modifications.

@ottokruse
Copy link
Collaborator

Aight, well let's get rid of a deprecated property 🤘🏻

@ottokruse ottokruse merged commit d33fbf2 into aws-samples:master Feb 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants