Skip to content

Instantly share code, notes, and snippets.

@annjawn
Created December 6, 2018 09:43
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save annjawn/fc21ccddb8cb511153b19ad758402a3f to your computer and use it in GitHub Desktop.
Save annjawn/fc21ccddb8cb511153b19ad758402a3f to your computer and use it in GitHub Desktop.
Cognito Identity pool Auth role trust relationship with S3
{
"Version": "2012-10-17",
"Statement": [
{
"Effect": "Allow",
"Principal": {
"Federated": "cognito-identity.amazonaws.com"
},
"Action": "sts:AssumeRoleWithWebIdentity",
"Condition": {
"StringEquals": {
"cognito-identity.amazonaws.com:aud": "us-east-1:xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
},
"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