Last active
October 27, 2021 14:19
-
-
Save kmcquade/406c1bbaeb47961d09b0abe43aeaf101 to your computer and use it in GitHub Desktop.
Testing this out with AWS
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
{ | |
"Version": "2012-10-17", | |
"Statement": [ | |
{ | |
"Sid": "VisualEditor0", | |
"Effect": "Deny", | |
"Action": "ec2:RunInstances", | |
"Resource": "arn:aws:ec2:*::image/ami-*", | |
"Condition": { | |
"StringNotEquals": { | |
"ec2:Owner": [ | |
"123456789012", | |
"${aws:PrincipalAccount}" | |
] | |
} | |
} | |
} | |
] | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment