Skip to content

Instantly share code, notes, and snippets.

@jimilinuxguy
Created July 23, 2019 09:33
Show Gist options
  • Save jimilinuxguy/a498fb23f6e8cb29cabda7fa5e6b38f7 to your computer and use it in GitHub Desktop.
Save jimilinuxguy/a498fb23f6e8cb29cabda7fa5e6b38f7 to your computer and use it in GitHub Desktop.
- name: ec2-instances-with-ami
resource: ec2
mode:
type: config-rule
role: lambda-role
filters:
- "State.Name": running
- type: image
key: OwnerId
op: not-equal
value: 'myownerid'
actions:
- stop
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment