Add validation check for UpdateReplacePolicy
See original GitHub issuecfn-lint version: 0.22.4
Description of issue. After getting bit by a missing UpdateReplacePolicy while adding a ddb local index, I think it would be good to include a check about including an UpdateReplacePolicy, similar to what is done for DeletionPolicy. These sort of warnings, at least in my experience, are great for pointing out features/practices that are easy to miss when getting started, but could save a whole lot of grief if configured.
Cfn-lint uses the CloudFormation Resource Specifications as the base to do validation. These files are included as part of the application version. Please update to the latest version of cfn-lint
or update the spec files manually (cfn-lint -u
)
Issue Analytics
- State:
- Created 4 years ago
- Reactions:2
- Comments:7 (6 by maintainers)
Top Results From Across the Web
Add validation check for UpdateReplacePolicy #1050 - GitHub
Description of issue. After getting bit by a missing UpdateReplacePolicy while adding a ddb local index, I think it would be good to...
Read more >UpdateReplacePolicy attribute - AWS CloudFormation
Specify how to handle resource replacement during stack update operations in AWS CloudFormation by using the UpdateReplacePolicy attribute.
Read more >How to set DeletionPolicy and UpdateReplacePolicy for a ...
Check the CDK construct library doc to see if this is the case. ... set any desired DeletionPolicy and UpdateReplacePolicy to the resource....
Read more >6 unknown CloudFormation features you should know about
... and I execute aws cloudformation validate-template before I git ... is attached to the auto scaling group while the cfn-signal is added...
Read more >CDK Pipelines and CloudFormation linting - Oblivion
The idea is to create a simple S3 bucket within your AWS account. This bucket will be deployed via CDK pipelines to have...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Probably? You’d might like to have a UpdateReplacePolicy, but no DeletionPolicy because Deletion is a more explicit action than a UpdateReplacement (aka it’s easier to trigger an UpdateReplacement by accident). But being explicit about those cases isn’t bad either. Adding
DeletionPolicy: Delete
would make the warning disappear.Or warn for a resource with a DeletionPolicy but no UpdateReplacePolicy?