Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import boto3
- autoscaling_client = boto3.client('application-autoscaling')
- #Read capacity
- autoscaling_client.register_scalable_target(ServiceNamespace="dynamodb",
- ResourceId="table/fake_table",
- ScalableDimension='dynamodb:table:ReadCapacityUnits',
- MinCapacity=5,
- MaxCapacity=100)
- #Write capacity
- autoscaling_client.register_scalable_target(ServiceNamespace="dynamodb",
- ResourceId="table/table_name",
- ScalableDimension='dynamodb:table:WriteCapacityUnits',
- MinCapacity=5,
- MaxCapacity=100)
Add Comment
Please, Sign In to add comment