Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save 5t33/b38376d3dd2ada6c8ca55c11cff9e7fd to your computer and use it in GitHub Desktop.
Save 5t33/b38376d3dd2ada6c8ca55c11cff9e7fd to your computer and use it in GitHub Desktop.
cognito-identity-role-assume-role-perm.json.tpl
{
"Version": "2012-10-17",
"Statement": [
{
"Effect": "Allow",
"Principal": {
"Federated": "cognito-identity.amazonaws.com"
},
"Action": [
"sts:AssumeRoleWithWebIdentity",
"sts:TagSession"
],
"Condition": {
"StringEquals": {
"cognito-identity.amazonaws.com:aud": [
"us-west-2:<your cognito identity pool id>"
]
},
"ForAnyValue:StringLike": {
"cognito-identity.amazonaws.com:amr": [
"authenticated",
"unauthenticated"
]
}
}
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment