Guest User

Untitled

a guest
Feb 18th, 2018
78
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.82 KB | None | 0 0
  1. import boto3
  2. autoscaling_client = boto3.client('application-autoscaling')
  3. #Read capacity
  4. autoscaling_client.register_scalable_target(ServiceNamespace="dynamodb",
  5. ResourceId="table/fake_table",
  6. ScalableDimension='dynamodb:table:ReadCapacityUnits',
  7. MinCapacity=5,
  8. MaxCapacity=100)
  9. #Write capacity
  10. autoscaling_client.register_scalable_target(ServiceNamespace="dynamodb",
  11. ResourceId="table/table_name",
  12. ScalableDimension='dynamodb:table:WriteCapacityUnits',
  13. MinCapacity=5,
  14. MaxCapacity=100)
Add Comment
Please, Sign In to add comment