-
Notifications
You must be signed in to change notification settings - Fork 3.9k
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
(deploy): (deploying bootstrap stack errors out with The bucket does not allow ACLs
CFN error)
#27866
Comments
Hi @n-tucker ,thanks for reaching out. As mentioned in the CDK Docs here, it was updated quite a while ago.
This is the recommended now and the solution shared by you also stands right. Hope that would be helpful! |
Thanks for getting back to me! I'm still unsure as to whether the current bootstrap template needs to be updated? Based on the info provided in your previous comment, it sounds like disabling ACLs in favour of using Could you confirm if something needs to changed with the bootstrap template, or if I'm doing something wrong in the bootstrap process? |
Is there any reason using 2.86.0 as this has been a while. I just bootstrap us-west-2 with the latest CDK CLI and it works with no error. |
Related #27764. |
|
Based on this thread, I think something did break for the things that were bootstapped with acls. My resolution was to skip the objectOwnership: s3.ObjectOwnership.BUCKET_OWNER_ENFORCED, The alternative, I'm guessing, would be to do a destroy/up with the appropriate non-acl settings. |
Upgrading from
|
Describe the bug
We're trying to update the CDK bootstrap stack in one of our AWS accounts and recently we've started seeing the above error when trying to deploy one of the S3 buckets
When I check the template provided here, I can see that this is using the legacy
AccessControl
property.I'm not sure if I'm missing something, but I'm confused why this property is still being set if this is causing issues? I'm happy to contribute a fix if this is a problem, but I first wanted to confirm if I'm on the right track! 😄
Expected Behavior
I should be able to update the bootstrap stack without issues
Current Behavior
I receive an error when I try and update the bootstrap stack
Reproduction Steps
Run
cdk bootstrap --template cloudformation.yaml
Possible Solution
Removing the
AccessControl
property, this guide seems to suggest usingObjectOwnership
Additional Information/Context
We do run a custom bootstrap template, however this doesn't touch any of the S3 bucket resources
CDK CLI Version
2.86.0
Framework Version
No response
Node.js Version
18.16.1
OS
Mac Ventura 13.6
Language
TypeScript
Language Version
No response
Other information
No response
The text was updated successfully, but these errors were encountered: