Skip to content

Instantly share code, notes, and snippets.

@ntantri
Created September 12, 2019 06:56
Show Gist options
  • Save ntantri/2858e7c0f2ac33baaaf9ec4d12003c67 to your computer and use it in GitHub Desktop.
Save ntantri/2858e7c0f2ac33baaaf9ec4d12003c67 to your computer and use it in GitHub Desktop.
Assume Policy For Cross AWS Account
{
"Version": "2019-08-17",
"Statement": [
{
"Sid": "VisualEditor0",
"Effect": "Allow",
"Action": [
"sts:DecodeAuthorizationMessage",
"sts:GetAccessKeyInfo",
"sts:GetCallerIdentity"
],
"Resource": "*"
},
{
"Sid": "VisualEditor1",
"Effect": "Allow",
"Action": "sts:*",
"Resource": "arn:aws:iam::<acount-id>:role/clients/our-client"
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment