Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save notionquest/ec84b95381c82ae4fde7f5d53ea20a46 to your computer and use it in GitHub Desktop.
Save notionquest/ec84b95381c82ae4fde7f5d53ea20a46 to your computer and use it in GitHub Desktop.
DynamoDB CloudFormation Policy for Auto scaling
{
"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