Skip to content

Conversation

@simonrw
Copy link
Contributor

@simonrw simonrw commented Dec 17, 2025

Motivation

A user has reported that setting policies is not only not implemented by our engigne, but actually incorrectly raises an error.

Changes

  • Don't raise error when modeling the policy fields
  • Skip deletion if UpdateReplacePolicy=Retain and a resource is updated
  • Skip deletion if DeletionPolicy=Retain and a resource is deleted

Related to

Resolves ENG-200

@simonrw simonrw added semver: patch Non-breaking changes which can be included in patch releases docs: skip Pull request does not require documentation changes notes: skip Pull request does not have to be mentioned in the release notes labels Dec 17, 2025
@github-actions
Copy link

github-actions bot commented Dec 17, 2025

Test Results - Preflight, Unit

22 982 tests  ±0   21 140 ✅ ±0   6m 16s ⏱️ +14s
     1 suites ±0    1 842 💤 ±0 
     1 files   ±0        0 ❌ ±0 

Results for commit f53ac96. ± Comparison against base commit b613fb9.

♻️ This comment has been updated with latest results.

@github-actions
Copy link

github-actions bot commented Dec 17, 2025

LocalStack Community integration with Pro

    2 files  ±0      2 suites  ±0   1h 57m 35s ⏱️ + 2m 30s
5 157 tests +4  4 760 ✅ +4  397 💤 ±0  0 ❌ ±0 
5 159 runs  +4  4 760 ✅ +4  399 💤 ±0  0 ❌ ±0 

Results for commit f53ac96. ± Comparison against base commit b613fb9.

♻️ This comment has been updated with latest results.

@simonrw simonrw force-pushed the cfn/handle-policies branch from 2e205bc to 7c41c83 Compare December 17, 2025 10:21
@github-actions
Copy link

github-actions bot commented Dec 17, 2025

Test Results (amd64) - Acceptance

7 tests  ±0   5 ✅ ±0   2m 57s ⏱️ -4s
1 suites ±0   2 💤 ±0 
1 files   ±0   0 ❌ ±0 

Results for commit f53ac96. ± Comparison against base commit b613fb9.

♻️ This comment has been updated with latest results.

@github-actions
Copy link

github-actions bot commented Dec 17, 2025

Test Results - Alternative Providers

587 tests   326 ✅  17m 47s ⏱️
  1 suites  261 💤
  1 files      0 ❌

Results for commit f53ac96.

♻️ This comment has been updated with latest results.

@github-actions
Copy link

github-actions bot commented Dec 17, 2025

Test Results (amd64) - Integration, Bootstrap

    5 files      5 suites   2h 34m 14s ⏱️
5 559 tests 5 001 ✅ 558 💤 0 ❌
5 565 runs  5 001 ✅ 564 💤 0 ❌

Results for commit f53ac96.

♻️ This comment has been updated with latest results.

# Motivation

A user has reported that setting policies is not only not implemented by our engigne, but actually incorrectly raises an error.

# Changes

* Don't raise error when modeling the policy fields
* Skip deletion if `UpdateReplacePolicy=Retain` and a resource is updated
* Skip deletion if `DeletionPolicy=Retain` and a resource is deleted


# Related to

Resolves ENG-200
@simonrw simonrw force-pushed the cfn/handle-policies branch from 7c41c83 to f53ac96 Compare December 18, 2025 20:26
@simonrw simonrw marked this pull request as ready for review December 18, 2025 22:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

docs: skip Pull request does not require documentation changes notes: skip Pull request does not have to be mentioned in the release notes 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