Thanks to visit codestin.com
Credit goes to github.com

Skip to content

CFn v2: Implement stack deletion #12576

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

Draft
wants to merge 5 commits into
base: master
Choose a base branch
from
Draft

CFn v2: Implement stack deletion #12576

wants to merge 5 commits into from

Conversation

simonrw
Copy link
Contributor

@simonrw simonrw commented May 2, 2025

Motivation

Quite a few resource tests fail because the deletion of a stack is not correctly implemented. The tests assert that resources are deleted, but they aren't.

Changes

  • Implement deletion by creating a "hidden" change set, and performing the execution by passing None in for the after template and parameters
  • Add skipped test_deletion.py test, but I don't know why it fails right now
    • it is trying to resolve a condition on an output which does not have a condition

Testing

In addition to the included test, run the test tests/aws/services/cloudformation/resources/test_events.py::test_cfn_event_bus_resource which fails on the master branch.

@simonrw simonrw added aws:cloudformation AWS CloudFormation semver: patch Non-breaking changes which can be included in patch releases labels May 2, 2025
Copy link

github-actions bot commented May 2, 2025

LocalStack Community integration with Pro

  2 files    2 suites   21m 37s ⏱️
468 tests 313 ✅ 155 💤 0 ❌
470 runs  313 ✅ 157 💤 0 ❌

Results for commit dc764a7.

♻️ This comment has been updated with latest results.

@simonrw simonrw added this to the Playground milestone May 6, 2025
@simonrw simonrw force-pushed the cfn/v2/delete-stack branch from a459112 to 36039d4 Compare May 6, 2025 13:01
@simonrw simonrw requested a review from MEPalma May 6, 2025 16:12
@simonrw simonrw added the review: merge when ready Signals to the reviewer that a PR can be merged if accepted label May 6, 2025
@simonrw simonrw marked this pull request as ready for review May 6, 2025 16:13
@simonrw simonrw force-pushed the cfn/v2/delete-stack branch from 60db6f4 to ac56fa8 Compare May 6, 2025 20:42
@simonrw simonrw marked this pull request as draft May 7, 2025 10:10
@simonrw simonrw force-pushed the cfn/v2/delete-stack branch from ac56fa8 to dc764a7 Compare May 7, 2025 14:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
aws:cloudformation AWS CloudFormation review: merge when ready Signals to the reviewer that a PR can be merged if accepted semver: patch Non-breaking changes which can be included in patch releases
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants