Skip to content

Instantly share code, notes, and snippets.

@harsimranmaan
Created March 1, 2023 00:37
Show Gist options
  • Save harsimranmaan/ce7f8d2249da36808d2034c227697fae to your computer and use it in GitHub Desktop.
Save harsimranmaan/ce7f8d2249da36808d2034c227697fae to your computer and use it in GitHub Desktop.
AWS trust relationship for Vault
{
"Version": "2012-10-17",
"Statement": [
{
"Effect": "Allow",
"Principal": {
"Federated": "arn:aws:iam::0000000000000:oidc-provider/oidc-test-XXXXXXXX.amazonaws.com/v1/identity/oidc"
},
"Action": [
"sts:AssumeRoleWithWebIdentity",
"sts:TagSession"
],
"Condition": {
"StringEquals": {
"XXXXXX.amazonaws.com/v1/identity/oidc:aud": "sts.amazon.com"
},
"StringLike": {
"aws:RequestTag/department": "*"
}
}
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment