Skip to content

Instantly share code, notes, and snippets.

@dgwhited
Created September 4, 2020 03:22
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 dgwhited/d285c0a295cc13cd98d832b806e4445f to your computer and use it in GitHub Desktop.
Save dgwhited/d285c0a295cc13cd98d832b806e4445f to your computer and use it in GitHub Desktop.
{
"Effect": "Allow",
"Action": "iam:PassRole",
"Resource": "*",
"Condition": {
"StringEquals": {
"iam:PassedToService": "ec2.amazonaws.com"
},
"StringLike": {
"iam:AssociatedResourceARN": [
"arn:aws:ec2:us-east-1:123456789012:instance/*",
"arn:aws:ec2:us-west-1:123456789012:instance/*"
]
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment