I was getting

aws api gateway Execution failed due to configuration error: statusCode should be an integer which defined in request template for MOCK

added

request_templates = {
"application/json": "{\"statusCode\": 200}"
}

in my aws_api_gateway_integration

resource "aws_api_gateway_integration" "options_integration" {
rest_api_id = aws_api_gateway_rest_api.api.id
resource_id
= aws_api_gateway_resource.resource.id
http_method
= aws_api_gateway_method.options_method.http_method
type
= "MOCK"
request_templates
= {
"application/json": "{\"statusCode\": 200}"
}
depends_on = [
"aws_api_gateway_method.options_method"]
}

that worked for me.

Programmer, Database enthusiast currently exploring/learning MongoDB.

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store