Reputation: 350
I have many Global Secondary Indexes described in the CloudFormation template. When I trying to delete more than one I get this error "An error occurred: TodosDynamoDbTable - Cannot perform more than one GSI creation or deletion in a single update.".
How can I delete more than one GSI from the template at once? Maybe I can remove them manually from the table and then perform template update or I can use some attribute(like "DependsOn")?
Upvotes: 2
Views: 3668
Reputation: 63
As Miles mentioned, it's currently not possible using the standard CloudFormation template with a DynamoDB resource. You can however create a custom resource in CloudFormation that triggers a Lambda that can create/update/delete GSIs as you
Upvotes: 1
Reputation: 1732
Unfortunately this isn't possible, at least not right now. You have to update your stack multiple times, removing one at a time.
Upvotes: 6