-
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
(util): Cross account publishing disallowed for non-bootstraped accounts #31866
Comments
Hi @mrkbabu , thanks for reporting this. Let me know if you face the issue and it still persists. |
Thank you @khushail. Let me test it. Appreciate your quick turnaround. |
…ap stack If the bootstrap stack can't be found, it can't be validated. We used to fail closed, but that just means that cross-account publishing is broken. Instead, we have to fail open. Fixes #31866.
Comments on closed issues and PRs are hard for our team to see. |
1 similar comment
Comments on closed issues and PRs are hard for our team to see. |
Describe the bug
Release v2.163.0 has introduced a breaking change for customers who do not bootstrap their AWS CDK accounts and publish assets / artifacts to S3 buckets that lives a different AWS account.
Regression Issue
Last Known Working CDK Version
v2.162.1
Expected Behavior
For accounts that are not bootstrapped, CDK should allow to publish assets / artifacts to S3 bucket in cross account.
Current Behavior
We do not bootstrap our target deployment accounts. We also package & publish the deploying assets / artifacts into a S3 bucket that is managed in a central account to be used during CDK deploy. The change introduced in determineAllowCrossAccountAssetPublishing as part of “disallow cross account asset publishing in some scenarios (#31623) (edd031d)” is breaking our pipelines from publishing assets cross account and eventually failing to deploy.
Error observed
Reproduction Steps
Possible Solution
This function determineAllowCrossAccountAssetPublishing should be enhanced to allow cross account publishing for customers who do not bootstrap their AWS CDK accounts.
Additional Information/Context
No response
CDK CLI Version
2.163.1
Framework Version
No response
Node.js Version
16
OS
linux
Language
TypeScript
Language Version
No response
Other information
No response
The text was updated successfully, but these errors were encountered: