Skip to content
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

chore: Remove Validation on DeletionPolicy and UpdateReplacePolicy #3317

Merged
merged 4 commits into from
Aug 22, 2023

Conversation

GavinZZ
Copy link
Contributor

@GavinZZ GavinZZ commented Aug 22, 2023

Issue #, if available

Description of changes

CloudFormation now supports intrinsics in DeletionPolicy and UpdateReplacePolicy. SAM transform is enforcing a (now incorrect) validation on all DeletionPolicy fields that's preventing us from using intrinsic functions there. The transform doesn't need to process those values, it just needs to pass them through. CFN has updated their core language to permit this use case

Description of how you validated changes

Shouldn't have impact on any existing SAM behaviour. All current tests pass

Checklist

Examples?

Please reach out in the comments if you want to add an example. Examples will be
added to sam init through aws/aws-sam-cli-app-templates.

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

@GavinZZ GavinZZ requested a review from a team as a code owner August 22, 2023 21:23
Copy link
Member

@awood45 awood45 left a comment

Choose a reason for hiding this comment

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

I'd recommend a test case here using an intrinsic.

@GavinZZ GavinZZ enabled auto-merge (squash) August 22, 2023 22:45
Fix linting issues

Format file

Format file
@GavinZZ GavinZZ force-pushed the remove_deletion_policy_validation branch from 72b8ef7 to 8376a53 Compare August 22, 2023 22:50
@GavinZZ GavinZZ merged commit c75a133 into aws:develop Aug 22, 2023
8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants