# API Gateway Lambda GET Method Integration

**URL:** <https://discuss.hashicorp.com/t/api-gateway-lambda-get-method-integration/41291>\
**Category:** AWS\
**Tags:** consul-api-gateway\
**Created:** [June 27, 2022, 6:20pm UTC](https://discuss.hashicorp.com/t/api-gateway-lambda-get-method-integration/41291 "2022-06-27T18:20:05Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![skpaik](https://sea2.discourse-cdn.com/hashicorp/user_avatar/discuss.hashicorp.com/skpaik/32/29029_2.png) [@skpaik](https://discuss.hashicorp.com/u/skpaik)\
**Post date:** [June 27, 2022, 6:20pm UTC](https://discuss.hashicorp.com/t/api-gateway-lambda-get-method-integration/41291/1 "2022-06-27T18:20:05Z")

</div>

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.

```auto
{
  "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.

---

<div class="post-metadata">

**Author:** ![pavithra.ravichandra](https://avatars.discourse-cdn.com/v4/letter/p/d07c76/32.png) [@pavithra.ravichandra](https://discuss.hashicorp.com/u/pavithra.ravichandra)\
**Post date:** [January 23, 2024, 5:17pm UTC](https://discuss.hashicorp.com/t/api-gateway-lambda-get-method-integration/41291/2 "2024-01-23T17:17:32Z")

</div>

Hi, I am facing the same issue. Were you able to resolve it?
