Skip to content

Instantly share code, notes, and snippets.

@sofianhamiti
Last active September 19, 2022 10:43
Show Gist options
  • Save sofianhamiti/d78938a9da92c32a8b0b1b6215e63eff to your computer and use it in GitHub Desktop.
Save sofianhamiti/d78938a9da92c32a8b0b1b6215e63eff to your computer and use it in GitHub Desktop.
{
"Version": "2012-10-17",
"Statement": [
{
"Effect": "Allow",
"Principal": {
"Federated": "arn:aws:iam::<YOUR ACCOUNT ID>:oidc-provider/token.actions.githubusercontent.com"
},
"Action": "sts:AssumeRoleWithWebIdentity",
"Condition": {
"StringEquals": {
"token.actions.githubusercontent.com:aud": "sts.amazonaws.com"
}
}
},
{
"Effect": "Allow",
"Principal": {
"Service": [
"lambda.amazonaws.com",
"sagemaker.amazonaws.com",
"apigateway.amazonaws.com"
]
},
"Action": "sts:AssumeRole"
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment