amazon web services - AWS CLI: Attach an existing cloudwatch alarm to an existing auto scaling policy -


i'm having trouble attaching created alarms auto scaling group policy. have created policy so:

aws autoscaling put-scaling-policy --policy-name my-scaleout-policy --auto-scaling-group-name my-group --scaling-adjustment 2 --adjustment-type changeincapacity 

however, can't seem find correct cli command attach created alarm my-cpu-alarm policy.

update existing alarm & add policy arn in --alarm-actions parameter.

you can use put-metric-alarm command this. note have give original parameters update alarm overwritten.

you can alarm parameters using describe-alarm.


Comments