forked from aws/aws-cdk
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(cx-api): bootstrap stack is validated even if the custom synthesi…
…zer does not require it (aws#21518) This fixes aws#21324 The property `requiresBootstrapStackVersion` of the class `AssetManifestArtifact` is a [required property of type number](https://github.com/aws/aws-cdk/blob/34e31b90c8cdd51b8af61f352aa0ab7a0332ed4c/packages/%40aws-cdk/cx-api/lib/artifacts/asset-manifest-artifact.ts#L38-L41) that is [defaulted to `1`]((https://github.com/aws/aws-cdk/blob/34e31b90c8cdd51b8af61f352aa0ab7a0332ed4c/packages/%40aws-cdk/cx-api/lib/artifacts/asset-manifest-artifact.ts#L58)). This behavior prevents the custom synthesizers from disabling the validation of the bootstrap stack when it knows that it does not need this stack. This change allows the property to be `undefined`, removes the behaviour of defaulting it to `1`, and adds a breaking unit test. ---- ### All Submissions: * [X] Have you followed the guidelines in our [Contributing guide?](https://github.com/aws/aws-cdk/blob/main/CONTRIBUTING.md) ### Adding new Unconventional Dependencies: * [ ] This PR adds new unconventional dependencies following the process described [here](https://github.com/aws/aws-cdk/blob/main/CONTRIBUTING.md/#adding-new-unconventional-dependencies) ### New Features * [ ] Have you added the new feature to an [integration test](https://github.com/aws/aws-cdk/blob/main/INTEGRATION_TESTS.md)? * [ ] Did you use `yarn integ` to deploy the infrastructure and generate the snapshot (i.e. `yarn integ` without `--dry-run`)? *By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license*
- Loading branch information
Showing
3 changed files
with
53 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters