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

chore(app-staging-synthesizer-alpha): app staging stack description #28817

Merged
merged 6 commits into from
Jan 23, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -242,6 +242,7 @@ export class DefaultStagingStack extends Stack implements IStagingResources {
super(scope, id, {
...props,
synthesizer: new BootstraplessSynthesizer(),
description: `This stack includes resources needed to deploy the AWS CDK app ${props.appId} into this environment`,
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Feedback on this description is welcome.

I based this on the default CDKToolkit stack description:

This stack includes resources needed to deploy AWS CDK apps into this environment

Do we want to include the term AppStagingSynthesizer?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think the current description is probably fine as is. Users will be able to easily check that resources are being created by checking the Resources tab anyway.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

One thing that we're not considering. The support stack (since it cannot be bootstrapped) must be uploaded to CFN directly, and CFN supports a max size of 51,200 bytes. The app support stack is dynamic because it entirely depends on how many ECR/S3 resources you want. So the description cuts into that.

Somewhere we are promising a number of ECR resources allowed per staging stack. That number could go down as a result of this.

That being said, we probably are ok with this.

analyticsReporting: false, // removing AWS::CDK::Metadata construct saves ~3KB
});
// removing path metadata saves ~2KB
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
{
"Description": "This stack includes resources needed to deploy the AWS CDK app default-resourcesmax into this environment",
"Resources": {
"CdkFileRoleE26CEABA": {
"Type": "AWS::IAM::Role",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
{
"Description": "This stack includes resources needed to deploy the AWS CDK app default-resourcesmax into this environment",
"Resources": {
"CdkFileRoleE26CEABA": {
"Type": "AWS::IAM::Role",
Expand Down