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
Added support to create 2019.11.21 version of Global Table (#27)
* Added support to create 2019 11 21 version of Global Table
* Returned the lighter version of lodash.get back and updated package-lock.json README.md files
* Added additional tips about v2 setup to README.md file
Co-authored-by: Oleksandr Kononenko <o.kononenko@spd-ukraine.com>
Copy file name to clipboardExpand all lines: README.md
+23-2Lines changed: 23 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -21,19 +21,40 @@ plugins:
21
21
```yaml
22
22
custom:
23
23
globalTables:
24
+
version: v1# optional, default is 'v1' (2017.11.29), please use 'v2' for (2019.11.21) version creation
24
25
regions: # list of regions in which you want to set up global tables
25
26
- region-1
26
27
- region-2
27
28
createStack: false # optional flag, when set to false will not deploy the stack in new region(s) and will create the tables using AWS SDK.
29
+
# if you use 'createStack: true' with 'version: v2', please add 'Condition' rule to your dynamodb to create it in the main region only,
30
+
# other regions are going to be replicated automatically from the main region.
28
31
```
29
32
30
-
_NOTE_: When creating global tables with `createStack: false`, any update the source table config is not replicated to global tables.
31
-
33
+
_NOTE_:
34
+
1. When creating global tables with `createStack: false`, any update the source table config is not replicated to global tables.
35
+
2.`version` field is backward compatible and not required (the field can be absent).
36
+
If you want to use Global Table (Version 2019.11.21), please use `version: v2`.
37
+
Also, we don't recommend using `v2` over `v1` in your existing project. The plugin doesn't support updating from `v1` to `v2`.
38
+
More details about Global Tables you can find in the following link: [AWS DynamoDB Global Tables](https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/GlobalTables.html)
39
+
3. Here is an example of using conditions, by default it's optional, but it's required for `createStack: true` with `version: v2` setup:
0 commit comments