merlin2011
merlin2011

Reputation: 75639

How do I view the DeletionPolicy on a given CloudFormation resource?

I created a CloudFormation stack and then updated it using a changeset to change DeletionPolicy to Retain.

Is there any way to view the DeletionPolicy on a resource in a live stack to tell whether it was set correctly?

Upvotes: 5

Views: 1685

Answers (1)

Pat Myron
Pat Myron

Reputation: 4648

describe-stack-resource does not currently return DeletionPolicy

Read the DeletionPolicy documentation for default DeletionPolicy values, search the template itself for DeletionPolicy overrides, and ensure your CloudFormation stack status reached the status you were expecting (probably CREATE_COMPLETE / UPDATE_COMPLETE)

Upvotes: 3

Related Questions