stefanbund / 311

Interactive Web Development
33 stars 46 forks source link

IAM/COGNITO/DYNAMODB #7

Closed pmartinez8241 closed 7 years ago

pmartinez8241 commented 7 years ago

hello,

I am having a bit of trouble allowing users to sign in using cognito and access dynamoDB.

I think it may be this condition in my IAM policy that is screwing things up

"Condition": { "ForAllValues:StringEquals": { "dynamodb:LeadingKeys": [ "${cognito-identity.amazonaws.com:sub}" ]

I have no idea what this condition is or how to satisfy it.

I spent pretty much all this weekend figuring out how to use cognito, and

got most of the dynamodb functions working. Unfortunately IAM roles and policies are

what I am having a lot of problems with now.

Thanks

-Pete Martinez