G. Boyce
G. Boyce

Reputation: 59

AWS API Gateway + DynamoDB Role ARN Error

I've tried to connect a simple db in DynamoDB with a basic API in API Gateway that I've built. I followed this guide: https://www.youtube.com/watch?v=TuGyyTXPQ-U and after creating the DB, generating the role with the appropriate permissions and generating a simple get request in the API gateway I keep running into this error:

{ "message": "AWS ARN for integration contains invalid action" }

I get this with both post/get request in my API. Pretty new to AWS so anything would help. Thanks!

Upvotes: 4

Views: 8112

Answers (2)

Abdul Manaf
Abdul Manaf

Reputation: 5003

This error related with ARN Role. Check the IAM role, and check its have dynamoDb full access permission.

NB :

  1. Use IAM Role insteadof IAM User

Upvotes: 0

MikeD at AWS
MikeD at AWS

Reputation: 3745

You can get that error if the action on the integration is blank or missing. On the integration page, ensure that "Action type" is set to "Use action name" and ensure that "Action" is set to "PutItem".

Upvotes: 6

Related Questions