-
Notifications
You must be signed in to change notification settings - Fork 4k
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
chore(app-staging-synthesizer): reduce the size of DefaultStagingStack template by 5KB #26024
Conversation
packages/@aws-cdk/app-staging-synthesizer-alpha/lib/default-staging-stack.ts
Outdated
Show resolved
Hide resolved
packages/@aws-cdk/app-staging-synthesizer-alpha/lib/default-staging-stack.ts
Outdated
Show resolved
Hide resolved
packages/@aws-cdk/app-staging-synthesizer-alpha/lib/default-staging-stack.ts
Outdated
Show resolved
Hide resolved
Thank you for contributing! Your pull request will be updated from main and then merged automatically (do not update manually, and be sure to allow changes to be pushed to your fork). |
AWS CodeBuild CI Report
Powered by github-codebuild-logs, available on the AWS Serverless Application Repository |
Thank you for contributing! Your pull request will be updated from main and then merged automatically (do not update manually, and be sure to allow changes to be pushed to your fork). |
Since
DefaultStagingStack
is a stack that creates staging resources, it is bound to the CloudFormation limit of 51KB. This means that there is an upper limit on how many ECR repositories (and in turn, unique images) are allowed in the CDK App. In an effort to increase this limit, this PR does the following:AWS::CDK::Metadata
construct to save ~3KBUsingDefaultStagingStack
construct to the stacks that use theDefaultStagingStack
for analytics purposes.In all, this should decrease the size of the DefaultStagingStack template by ~5KB, or ~10% of the overall size allowed.
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license