Skip to content

Instantly share code, notes, and snippets.

@kapilt
Created October 27, 2016 11:53
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kapilt/c4b0171f7c43dfff388d1c38e751f245 to your computer and use it in GitHub Desktop.
Save kapilt/c4b0171f7c43dfff388d1c38e751f245 to your computer and use it in GitHub Desktop.
policies:
- name: ec2-resizer
resource: ec2
filters:
- type: value
key: InstanceType
op: in
value:
- m4.10xlarge
- m4.4xlarge
- type: instance-age
value: 12
- type: metrics
name: CPUUtilization
days: 14
value: 3
op: less-than
actions:
- type: resize
restart: true
type-map:
m4.4xlarge: m4.2xlarge
m4.10xlarge: m4.2xlarge
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment