-
-
Notifications
You must be signed in to change notification settings - Fork 4.2k
CFn v2: implement support for CDK bootstrap #12731
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
Conversation
## Motivation Currently CDK bootstrap fails for a variety of reasons. Without this, users who use CDK cannot test their applications with our new engine. ## Changes * Handle dynamic parameter lookup of SSM parameters * Set resource status on success/failure of a deployment * Handle the case where an Fn::Join is called without a list as a second argument, in the special case of an empty string, e.g. `Fn::Join: ["", ""] as the CDK does this * Add helper `find_stack_v2` function for finding v2 stacks * Implement `describe_stack_resources` to support our CDK bootstrap tests * Update the cdk bootstrap test skip reason as our lack of deletion causes test failures ## Testing I have not added any integration tests for this since its functionality is covered by our existing `TestCdkInit.test_cdk_bootstrap` (parametrized) tests. Unfortunately since we don't support deletions yet (see #12576), the tests fail when run together. Each test individually passes, so I've updated the skip reason to reflect the updated nature of the failure. To test manually, unskip the tests, and run ``` pytest tests/aws/services/cloudformation/v2/ported_from_v1/resources/test_cdk.py::TestCdkInit::test_cdk_bootstrap[10] ```
LocalStack Community integration with Pro 2 files ± 0 2 suites ±0 21m 35s ⏱️ - 1h 22m 18s Results for commit cc92e8e. ± Comparison against base commit 3adead2. This pull request removes 3987 tests.
|
Test Results (amd64) - Integration, Bootstrap 5 files 5 suites 33m 16s ⏱️ Results for commit cc92e8e. |
Test Results - Alternative Providers987 tests 584 ✅ 23m 17s ⏱️ Results for commit cc92e8e. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Motivation
Currently CDK bootstrap fails for a variety of reasons. Without this, users who use CDK cannot test their applications with our new engine.
Changes
Fn::Join: ["", ""]
as the CDK does thisfind_stack_v2
function for finding v2 stacksdescribe_stack_resources
to support our CDK bootstrap testscauses test failures
Testing
I have not added any integration tests for this since its functionality is covered by our existing
TestCdkInit.test_cdk_bootstrap
(parametrized) tests. Unfortunately since we don't support deletions yet (see #12576), the tests fail when run together. Each test individually passes, so I've updated the skip reason to reflect the updated nature of the failure.To test manually, unskip the tests, and run