Skip to content

Commit

Permalink
Update main-template.yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
YaroslavPshenichnikov authored Dec 2, 2023
1 parent b7e87cf commit 29228dc
Showing 1 changed file with 48 additions and 1 deletion.
49 changes: 48 additions & 1 deletion main-template.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,54 @@ Resources:
ApplyOn: None
PackageType: Zip
Role: !GetAtt DocspaceReverseProxyRole.Arn


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
- Region: ap-southeast-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
# ==== ROLES ==== #
DocspaceReverseProxyRole:
Type: AWS::IAM::Role
Expand Down

0 comments on commit 29228dc

Please sign in to comment.