IAM Gives access to one dynamoDB method but not another using javascript to AWS
问题 I have the following policy defined on a Cognito role { "Version": "2012-10-17", "Statement": [ { "Effect": "Allow", "Action": [ "dynamodb:GetItem", "dynamodb:Scan", "dynamodb:UpdateItem" ], "Resource": [ "arn:aws:dynamodb:ap-southeast-2: NUMBER:table/myapplication_product" ], "Condition": { "ForAllValues:StringEquals": { "dynamodb:LeadingKeys": [ "${cognito-identity.amazonaws.com:sub}" ] } } } ] } As you can see, it should allow access to GetItem, UpdateItem and Scan, but I'm finding that