Skip to content

Instantly share code, notes, and snippets.

@pcoady
Created September 12, 2014 14:41
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 pcoady/2c820a109e5fe271dda3 to your computer and use it in GitHub Desktop.
Save pcoady/2c820a109e5fe271dda3 to your computer and use it in GitHub Desktop.
Cognito-Phonegap-Tutorial-IAM
{
"Version": "2012-10-17",
"Statement":
[
{
"Action": [
"mobileanalytics:PutEvents",
"cognito-sync:*"
],
"Effect": "Allow",
"Resource": [
"*"
]
},
{
"Effect": "Allow",
"Action": [
"s3:GetObject",
"s3:PutObject",
"s3:PutObjectAcl",
"s3:DeleteObject"
],
"Resource": [
"arn:aws:s3:::backspace-cognito-test/${cognito-identity.amazonaws.com:sub}/*",
"arn:aws:s3:::backspace-cognito-test/${cognito-identity.amazonaws.com:sub}"
]
}
]
}
@pcoady
Copy link
Author

pcoady commented Sep 12, 2014

This is the file from the tutorial at http://backspace.technology/learn-aws-cognito.html

@pcoady
Copy link
Author

pcoady commented Apr 3, 2015

The blog for this code is now maintained at http://blog.backspace.academy

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment