I have created an IAC by Terraform for
- API Gateway
- Lambda (Java)
- DynamoDB
- IAM and Policy
Users can create a POST request to the API gateway and can get data via lambda from dynamodb.
Currently, the method is “POST”.
But when I convert it to “GET”, Then I cannot receive the data.
I have faced the following errors.
{
"message": "Internal server error"
}
{"x-amzn-ErrorType":["InternalServerErrorException"]}
<AccessDeniedException>
<Message>Unable to determine service/operation name to be authorized</Message>
</AccessDeniedException>
Lambda invocation failed with status: 403. Lambda request id: ce751387-f7f9-4bb0-9efc-edaa5f5acee7
Execution failed due to configuration error:
Please help someone.