Reputation: 17930
I am using AWS SAM to define my app, and I am defining a DynamoDB table using this: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-dynamodb-table.html#cfn-dynamodb-table-tablename
However, I am worried that in Prod, this will lead to deleting the table and its content.
How do others handle this? Is there a way to keep the table and not drop and recreate it?
Upvotes: 1
Views: 855
Reputation: 7913
Deletion
and UpdateReplace
policies to ensure you do not lose data, even if you do replace it by accident.Upvotes: 2