API Gateway + Lambda integration

I am trying to create an HTTP API with API Gateway and Lambda using aws_apigatewayv2_* resources. The API currently has a GET method. Now although the resources get created, the API returns an HTTP 500. The weird bit is that if I Edit and Save the Response Parameters for the integration resource on the AWS Console, the issue goes away.

I am not able to pin point what is the issue, though it appears to be something with the integration.

Has anyone faced this before, or has any insight on the cause of this issue?

try doing a “deploy api” of your gateway api through the aws console.

@brian.sheets The auto deploy is set to true for the stage, so the option to deploy is disabled. But I had tried this out, when the auto deploy was set to false, and it didn’t work.