Does the sst `Table` construct support the `replic...
# sst
a
Does the sst
Table
construct support the
replicationRegions
and
replicationTimeout
props needed for creating global tables? If so, how’d I go about passing these to the
Table
construct? An example would be helpful.
I think I figured this out. This is how it will work -
Copy code
new Table(this, 'Table', {
      fields: {
        userId: TableFieldType.STRING,
        noteId: TableFieldType.STRING,
      },
      primaryIndex: { partitionKey: 'noteId', sortKey: 'userId' },
      dynamodbTable: {
        replicationRegions: ['us-west-1', 'eu-south-1'],
        replicationTimeout: Duration.hours(6),
      },
    });
f
Oh nice! @Ashishkumar Pandey r u doing some global table magic?
a
Yep, I’m going to attempt a multi-region active-active deployment and might also try to implement canary deployments as well. This is gonna be fun eh!