question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Add validation check for UpdateReplacePolicy

See original GitHub issue

cfn-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:closed
  • Created 4 years ago
  • Reactions:2
  • Comments:7 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
benbridtscommented, Nov 24, 2019

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.

1reaction
benbridtscommented, Nov 22, 2019

Or warn for a resource with a DeletionPolicy but no UpdateReplacePolicy?

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found