aws_api_gateway_resource is missing functionality to be able to create a proxy resource as well as to enable API gateway CORS on a resource...
0.8.5
resource "aws_api_gateway_resource" "stage_proxy_api_resource" {
rest_api_id = "${aws_api_gateway_rest_api.MyAapp_stage_api.id}"
parent_id = "${aws_api_gateway_resource.stage_MyApp_api_resource.id}"
path_part = "{proxy+}"
}
There is no option to specify this is a proxy resource (At least in the current documentation) nor is there one to specify "Enable API Gateway CORS" either
@djandruczyk I've successfully created a proxy resource using the path_part {proxy+} when combined with a proxy integration_http_method. Agreed there is no way to enable CORS. If you click the [Enable CORS] in the console its just running multiple actions to enable an OPTIONS method and req/resp templates. You could replicate this with your own methods.
Excellent, thanks!
-- David
On Feb 1, 2017, at 7:31 PM, Adam notifications@github.com wrote:
@djandruczyk I've successfully created a proxy resource using the path_part {proxy+} when combined with a proxy integration_http_method. Agreed there is no way to enable CORS. If you click the [Enable CORS] in the console its just running multiple actions to enable an OPTIONS method and req/resp templates. You could replicate this with your own methods.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub, or mute the thread.
I had trouble getting to work, but this stackexchange question/answer solved it for me.
I'm going to lock this issue because it has been closed for _30 days_ ⏳. This helps our maintainers find and focus on the active issues.
If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.
Most helpful comment
@djandruczyk I've successfully created a proxy resource using the path_part {proxy+} when combined with a proxy integration_http_method. Agreed there is no way to enable CORS. If you click the [Enable CORS] in the console its just running multiple actions to enable an OPTIONS method and req/resp templates. You could replicate this with your own methods.