Troubles creating an AWS API Gateway for http_proxy

280 views
Skip to first unread message

Mark Keisler

unread,
May 22, 2017, 10:39:52 AM5/22/17
to Terraform
I'm trying to create an AWS API Gateway to proxy an existing service.  I set up a test instance of the API gateway through the console and am trying to replicate that in terraform.  Something is missing, but I am not quite sure what.  Here is what the console created one looks like:

And here is what the terraform created one looks like:













Notice that the console created one has a Method Response set for "HTTP Status: Proxy".  I can't figure out how to do that with terraform.



Borja López Altarriba

unread,
Jun 6, 2017, 3:45:54 AM6/6/17
to Terraform
Hi Mark,

I was in the same situation a time ago. You can find the answer here: https://github.com/hashicorp/terraform/issues/10157

Basically, you have to add "aws_api_gateway_method_response" and "aws_api_gateway_integration_response".

Hope it helps.
Reply all
Reply to author
Forward
0 new messages