Skip to content

Instantly share code, notes, and snippets.

@kmcquade
Last active October 27, 2021 14:19
Show Gist options
  • Save kmcquade/406c1bbaeb47961d09b0abe43aeaf101 to your computer and use it in GitHub Desktop.
Save kmcquade/406c1bbaeb47961d09b0abe43aeaf101 to your computer and use it in GitHub Desktop.
Testing this out with AWS
{
"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