Created
July 6, 2017 22:21
-
-
Save notionquest/ec84b95381c82ae4fde7f5d53ea20a46 to your computer and use it in GitHub Desktop.
DynamoDB CloudFormation Policy for Auto scaling
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"Type" : "AWS::ApplicationAutoScaling::ScalingPolicy", | |
"Properties" : { | |
"PolicyName" : "MyScalingPolicy", | |
"PolicyType" : "TargetTrackingScaling", | |
"ResourceId" : "arn:aws:dynamodb:us-east-1:123456789012:table/books_table", | |
"ScalableDimension" : "dynamodb:table:WriteCapacityUnits", | |
"ServiceNamespace" : "dynamodb", | |
"TargetTrackingScalingPolicyConfiguration" : { | |
"PredefinedMetricSpecification": { | |
"PredefinedMetricType": "DynamoDBWriteCapacityUtilization" | |
}, | |
"ScaleOutCooldown": 60, | |
"ScaleInCooldown": 60, | |
"TargetValue": 50.0 | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment