Slyper
Slyper

Reputation: 906

API Gateway IAM role to access DynamoDB

So I am following this Tutorial

I have created a role and attached the AmazonDynamoDBFullAccess policy to it ...

enter image description here

When I assign this role to Gateway API .... like this

enter image description here

I keep getting this error ...

Execution failed due to configuration error: API Gateway does not have permission to assume the provided role

Isn't the "AmazonDynamoDBFullAccess" policy that I have applied to my role "MyDynamoRole" enough to give Gateway API necessary permissions ?

Upvotes: 2

Views: 2941

Answers (2)

Ahmed Suhail
Ahmed Suhail

Reputation: 162

For people that might be struggling to create a role via the console, the hack is to use EC2 or Lambda based IAM roles to create a generic role and then edit the Trust Relationships to have the service.

"apigateway.amazonaws.com"

Upvotes: 0

Slyper
Slyper

Reputation: 906

Found a solution ....

Under "Role --> Trust Relationship", I have added another service i.e. API Gateway ...

"apigateway.amazonaws.com"

and all good now ...

Upvotes: 4

Related Questions