Skip to content

Conversation

@iankhou
Copy link
Contributor

@iankhou iankhou commented Jul 30, 2025

Issue #28195

Closes #28195

Reason for this change

When passing bootstrapQualifier in props to AppStagingSynthesizer.defaultResources, the synthesizer would still use the default qualifier 'hnb659fds' when looking for bootstrap roles.

Description of changes

BootstraplessSynthesizer is modified to take qualifier as an optional argument (if not provided, default bootstrap qualifier 'hnb659fds' is used).

The bootstrapqualifier is passed to BootstraplessSynthesizer, which is called in AppStagingSynthesizer.defaultResources().

These changes ensure that calls to AppStagingSynthesizer.defaultResources using the bootstrapQualifier will use the qualifier in the deployment and CloudFormation execution roles instead of the default qualifier 'hnb659fds'.

Describe any new or updated permissions being added

None.

Description of how you validated changes

Added unit tests for:

  • BootstraplessSynthesizer, which now optionally takes qualifier as an option
  • AppStagingSynthesizer, which passes qualifier to BootstraplessSynthesizer

Tested by hand in a personal dev account.

Checklist


By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license

@github-actions github-actions bot added bug This issue is a bug. effort/medium Medium work item – several days of effort p1 labels Jul 30, 2025
@aws-cdk-automation aws-cdk-automation requested a review from a team July 30, 2025 20:36
@mergify mergify bot added the contribution/core This is a PR that came from AWS. label Jul 30, 2025
Copy link
Collaborator

@aws-cdk-automation aws-cdk-automation left a comment

Choose a reason for hiding this comment

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

(This review is outdated)

@iankhou iankhou changed the title fix(app-staging-synthesizer): custom bootstrap qualifier is not passe… fix(app-staging-synthesizer): custom bootstrap qualifier is not passed through to deployment role name Jul 30, 2025
@iankhou iankhou force-pushed the iankhou-app-staging-synth-qualifier branch from 313f4e4 to 8425c28 Compare July 31, 2025 20:33
@iankhou iankhou self-assigned this Jul 31, 2025
@iankhou iankhou added the pr-linter/exempt-integ-test The PR linter will not require integ test changes label Jul 31, 2025
@iankhou iankhou marked this pull request as ready for review July 31, 2025 20:36
@aws-cdk-automation aws-cdk-automation dismissed their stale review July 31, 2025 20:37

✅ Updated pull request passes all PRLinter validations. Dismissing previous PRLinter review.

@iankhou iankhou requested a review from a team as a code owner July 31, 2025 20:37
@aws-cdk-automation aws-cdk-automation added the pr/needs-maintainer-review This PR needs a review from a Core Team Member label Jul 31, 2025
@Abogical Abogical assigned Abogical and unassigned iankhou Aug 4, 2025
@mergify
Copy link
Contributor

mergify bot commented Aug 4, 2025

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-cdk-automation
Copy link
Collaborator

AWS CodeBuild CI Report

  • CodeBuild project: AutoBuildv2Project1C6BFA3F-wQm2hXv2jqQv
  • Commit ID: c6478fb
  • Result: SUCCEEDED
  • Build Logs (available for 30 days)

Powered by github-codebuild-logs, available on the AWS Serverless Application Repository

@mergify
Copy link
Contributor

mergify bot commented Aug 4, 2025

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).

@mergify mergify bot merged commit 6525d51 into main Aug 4, 2025
19 checks passed
@github-actions
Copy link
Contributor

github-actions bot commented Aug 4, 2025

Comments on closed issues and PRs are hard for our team to see.
If you need help, please open a new issue that references this one.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Aug 4, 2025
@iankhou iankhou removed the bug This issue is a bug. label Aug 4, 2025
@aws-cdk-automation aws-cdk-automation removed the pr/needs-maintainer-review This PR needs a review from a Core Team Member label Aug 4, 2025
@mrgrain mrgrain added the bug This issue is a bug. label Aug 5, 2025
@iankhou iankhou self-assigned this Aug 5, 2025
@iankhou iankhou deleted the iankhou-app-staging-synth-qualifier branch October 7, 2025 05:19
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

bug This issue is a bug. contribution/core This is a PR that came from AWS. effort/medium Medium work item – several days of effort p1 pr-linter/exempt-integ-test The PR linter will not require integ test changes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

app-staging-synthesizer-alpha: Uses default bootstrap exec role when bootstrapQualifier is supplied

4 participants