Created
July 31, 2023 04:38
-
-
Save 5t33/b38376d3dd2ada6c8ca55c11cff9e7fd to your computer and use it in GitHub Desktop.
cognito-identity-role-assume-role-perm.json.tpl
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"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