Created
July 23, 2019 09:33
-
-
Save jimilinuxguy/a498fb23f6e8cb29cabda7fa5e6b38f7 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- 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