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

S3 deployment fails due to CDK bootstrapping issue #720

Open
5 tasks done
toytown opened this issue Feb 18, 2025 · 0 comments
Open
5 tasks done

S3 deployment fails due to CDK bootstrapping issue #720

toytown opened this issue Feb 18, 2025 · 0 comments
Labels
bug Something isn't working

Comments

@toytown
Copy link

toytown commented Feb 18, 2025

Describe the bug
CDK Bootstrap does not work in the management account with s3 deployment as source repository for LZA

To Reproduce

  1. Create a new management account
  2. Enable organization * aws organizations create-organization
  3. Checkout LZA v1.11.1 from github.
  4. Build the package as described in the doc https://docs.aws.amazon.com/solutions/latest/landing-zone-accelerator-on-aws/source-code-location.html
    > yarn build && yarn cdk synth --context use-s3-source=true
  5. Create a s3 bucket. Deploy the AWSAccelerator-InstallerStack.template.json template to this new s3 bucket
  6. Launch cloudformation stack called "AWSAccelerator-Installer" using the AWSAccelerator-InstallerStack.template.json in above step 5.
  7. Create an another s3 bucket for LZA source . Enable versioning for this bucket.
  8. Upload the LZA release version v1.11.1 from https://github.com/awslabs/landing-zone-accelerator-on-aws/releases/tag/v1.11.1 into releases/v1.11.1.zip in the s3 bucket created in step 8 .
  9. The codepipline fails "An error occurred (ValidationError) when calling the DescribeStacks operation: Stack with id AWSAccelerator-CDKToolkit does not exist"

Expected behavior
CDK bootstrap should be done by default with Codepipeline. This error does not occur if deployed with github as a source reporitory

Please complete the following information about the solution:

  • Version: v1.11.1

To get the version of the solution, you can look at the description of the created AWS CloudFormation stack used to install the LZA (AWSAccelerator-InstallerStack). For example, "(SO0199) Landing Zone Accelerator on AWS. Version 1.5.1.". If the description does not contain the version information, you can look at the Parameters of the stack for the RepositoryBranchName as that should contain the version number.

  • Region: [eu-central-1]
  • Was the solution modified from the version published on this repository? --> No
  • If the answer to the previous question was yes, are the changes available on GitHub?
  • Have you checked your service quotas for the services this solution uses?
  • Were there any errors in the CloudWatch Logs? --> Yes . "An error occurred (ValidationError) when calling the DescribeStacks operation: Stack with id AWSAccelerator-CDKToolkit does not exist"

Screenshots

Image

Additional context
Only occurs with s3 deployment as source repo.

@toytown toytown added the bug Something isn't working label Feb 18, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant