Skip to content

Commit

Permalink
ADD Global DynamoDB table for main stack
Browse files Browse the repository at this point in the history
  • Loading branch information
YaroslavPshenichnikov committed Nov 17, 2023
1 parent a44558e commit 94e25d2
Showing 1 changed file with 40 additions and 0 deletions.
40 changes: 40 additions & 0 deletions main-template.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -128,3 +128,43 @@ Resources:
- logs:PutLogEvents
Resource:
- arn:aws:logs:*:*:log-group:*:*
GlobalDynamoDBTable:
Type: AWS::DynamoDB::GlobalTable
Properties:
TableName: main-docspace-tenants_region
AttributeDefinitions:
- AttributeName: tenant_domain
AttributeType: S
KeySchema:
- AttributeName: tenant_domain
KeyType: HASH
Replicas:
- Region: us-east-1
ReadProvisionedThroughputSettings:
ReadCapacityAutoScalingSettings:
MinCapacity: 1
MaxCapacity: 10
TargetTrackingScalingPolicyConfiguration:
TargetValue: 70
- Region: us-east-2
ReadProvisionedThroughputSettings:
ReadCapacityAutoScalingSettings:
MinCapacity: 1
MaxCapacity: 10
TargetTrackingScalingPolicyConfiguration:
TargetValue: 70
- Region: eu-central-1
ReadProvisionedThroughputSettings:
ReadCapacityAutoScalingSettings:
MinCapacity: 1
MaxCapacity: 10
TargetTrackingScalingPolicyConfiguration:
TargetValue: 70
WriteProvisionedThroughputSettings:
WriteCapacityAutoScalingSettings:
MinCapacity: 1
MaxCapacity: 10
TargetTrackingScalingPolicyConfiguration:
TargetValue: 70
StreamSpecification:
StreamViewType: NEW_AND_OLD_IMAGES

0 comments on commit 94e25d2

Please sign in to comment.