Skip to content
This repository was archived by the owner on Feb 24, 2018. It is now read-only.
This repository was archived by the owner on Feb 24, 2018. It is now read-only.

CognitoIdentityCredentials, Access Denied error, not authorized to perform iam:PassRole??? #670

@icbdbmtbqinoot

Description

@icbdbmtbqinoot

Hi,
I am using cognito federated identity ID unauthorized version to set AWS credentials.
I already granted all the permissions for Cognito_myPoolNameUnauth_Role.
And it seems like other services like putting object in s3 bucket or creating dynamoDB table have
no problem. Everything works well except for creating lambda function code.
I get the same error again and again even after role is set properly for lambda.

Is this cognito identity credentials problem or iam problem?
I don't understand why iam role will have authorization error of iam:passrole
with all the permissions given.
Please help me find solution.
Thank you!

error : AccessDeniedException: User: arn:aws:sts:::assumed-role/Cognito_myPoolNameUnauth_Role/CognitoIdentityCredentials is not authorized to perform: iam:PassRole on resource: arn:aws:iam::*****:role/lambda_basic_execution

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions