Last active
January 24, 2019 10:17
-
-
Save franzwong/b36b8b7daab047b76cab4e3d86a55bac to your computer and use it in GitHub Desktop.
HowTo: Grant IAM role to Cognito authenticated user
This file contains hidden or 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", | |
"Condition": { | |
"StringEquals": {"cognito-identity.amazonaws.com:aud": "<IDENTITY_POOL_ID>"}, | |
"ForAnyValue:StringLike": {"cognito-identity.amazonaws.com:amr": "authenticated"} | |
} | |
}] | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment