You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
By default, the plugin will deploy the whole service stack in the specified region(s) and then setup global table relation between the dynamodb tables.
custom:
globalTables:
version: v1# optional, default is 'v1' (2017.11.29), please use 'v2' for (2019.11.21) version creationregions: # list of regions in which you want to set up global tables
- region-1
- region-2createStack: false # optional flag, when set to false will not deploy the stack in new region(s) and will create the tables using AWS SDK.# if you use 'createStack: true' with 'version: v2', please add 'Condition' rule to your dynamodb to create it in the main region only,# other regions are going to be replicated automatically from the main region.
NOTE:
When creating global tables with createStack: false, any update the source table config is not replicated to global tables.
version field is backward compatible and not required (the field can be absent).
If you want to use Global Table (Version 2019.11.21), please use version: v2.
Also, we don't recommend using v2 over v1 in your existing project. The plugin doesn't support updating from v1 to v2.
More details about Global Tables you can find in the following link: AWS DynamoDB Global Tables
Here is an example of using conditions, by default it's optional, but it's required for createStack: true with version: v2 setup: