Skip to content

Commit

Permalink
Merge pull request aws#3839 from Reneehi/deregaas
Browse files Browse the repository at this point in the history
Update deregister-scalable-target.rst
  • Loading branch information
jamesls authored Feb 28, 2019
2 parents 32712ce + a6b9e74 commit 5bd898d
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,13 @@ This example deregisters a scalable target for an Amazon ECS service called `web
Command::

aws application-autoscaling deregister-scalable-target --service-namespace ecs --scalable-dimension ecs:service:DesiredCount --resource-id service/default/web-app

This example deregisters a scalable target for a custom resource. The custom-resource-id.txt file contains a string that identifies the Resource ID, which, for a custom resource, is the path to the custom resource through your Amazon API Gateway endpoint.

Command::

aws application-autoscaling deregister-scalable-target --service-namespace custom-resource --scalable-dimension custom-resource:ResourceType:Property --resource-id file://~/custom-resource-id.txt

Contents of custom-resource-id.txt file::

https://example.execute-api.us-west-2.amazonaws.com/prod/scalableTargetDimensions/1-23456789
11 changes: 11 additions & 0 deletions awscli/examples/application-autoscaling/put-scheduled-action.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
**To add a scheduled action to a DynamoDB table**

This example adds a scheduled action to a DynamoDB table called `TestTable` to scale out on a recurring schedule. On the specified schedule (every day at 12:15pm UTC), if the current capacity is below the value specified for MinCapacity, Application Auto Scaling scales out to the value specified by MinCapacity.

Command::

aws application-autoscaling put-scheduled-action --service-namespace dynamodb --scheduled-action-name my-recurring-action --schedule "cron(15 12 * * ? *)" --resource-id table/TestTable --scalable-dimension dynamodb:table:WriteCapacityUnits --scalable-target-action MinCapacity=6

For more information, see `Scheduled Scaling`_ in the *Application Auto Scaling User Guide*.

.. _`Scheduled Scaling`: https://docs.aws.amazon.com/autoscaling/application/userguide/application-auto-scaling-scheduled-scaling.html

0 comments on commit 5bd898d

Please sign in to comment.