Skip to content
This repository has been archived by the owner on Jul 7, 2021. It is now read-only.

Custom resource for dynamodb table #25

Open
mwildehahn opened this issue Aug 4, 2016 · 0 comments
Open

Custom resource for dynamodb table #25

mwildehahn opened this issue Aug 4, 2016 · 0 comments

Comments

@mwildehahn
Copy link
Contributor

The default cloudformation dynamodb stack is really rigid. Updating AttributeDefinitions requires a replacement: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-dynamodb-table.html#cfn-dynamodb-table-attributedef and you can't have a global secondary index that references a non-attribute definition.

You CAN update a table and add attribute definitions/GSIs with the boto3 api: http://boto3.readthedocs.io/en/latest/reference/services/dynamodb.html#DynamoDB.Client.update_table.

A custom resource that just piped args to the create_table and update_table would make it much easier to evolve dynamodb schema.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant