How to set UpdateReplacePolicy and DeletionPolicy on Amplify resources?

1

CloudFormation implements hooks for describing the behavior for update [1] and deletion [2] events on individual resources. Is there an efficient way to programmatically set these behavior policies on my Amplify resources besides overriding every single resource [3] and doing it with CDK? Ideally I could set a default behavior for all resources (or type of resource) and then only override when individual resources require different behavior.

[1] https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-updatereplacepolicy.html [2] https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html [3] https://docs.amplify.aws/cli/auth/override/

No Answers

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions