Skip to content

AWS Cloud Formation - DynamoDB Table - Create/Update

0

Using AWS cloud formation template, how can I update schema/index of an existing DynamoDB Table without recreating it.How can I use UpdatePolicy and UpdateReplacePolicy??

asked 2 years ago320 views

3 Answers
1
Accepted Answer

You cannot update/change the schema of a DynamoDB table. It will always result in creating a new table.

For indexes, simply add a new index with the keys you desire. Once deployed, drop the old index.

AWS
EXPERT

answered 2 years ago

EXPERT

reviewed 2 years ago

0

I did it already, I could not find an answer

answered 2 years ago

-1

You can check here for DynamoDB table behavior for changing its properties: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-dynamodb-table.html

KeySchema updates has no interruptions.

Since you have an existing template, you can always test its behavior in another environment.

AWS

answered 2 years ago

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.