aws application-autoscaling register-scalable-target --cli-input-json file://aws/autoscale/dev/scalable-target.json
After executing command save PolicyARN from output for setting up alarms later
- Memory scale out
aws application-autoscaling put-scaling-policy --cli-input-json file://aws/autoscale/dev/memory/scale-out.json
- Memory scale down
aws application-autoscaling put-scaling-policy --cli-input-json file://aws/autoscale/dev/memory/scale-down.json
- CPU scale out
aws application-autoscaling put-scaling-policy --cli-input-json file://aws/autoscale/dev/cpu/scale-out.json
- CPU scale down
aws application-autoscaling put-scaling-policy --cli-input-json file://aws/autoscale/dev/cpu/scale-down.json
- Memory scale out
aws cloudwatch put-metric-alarm --cli-input-json file://aws/autoscale/dev/memory/alarm-scale-out.json
- Memory scale down
aws cloudwatch put-metric-alarm --cli-input-json file://aws/autoscale/dev/memory/alarm-scale-down.json
- CPU scale out
aws cloudwatch put-metric-alarm --cli-input-json file://aws/autoscale/dev/cpu/alarm-scale-out.json
- CPU scale down
aws cloudwatch put-metric-alarm --cli-input-json file://aws/autoscale/dev/cpu/alarm-scale-down.json