0
0
llucycodes42
The code is setting up a resource called MyDemoResource and attaching it to a gateway called MyDemoGateway. The gateway's resource ID is set to MyDemoResource.id and the gateway's REST API id is set to MyDemoAPI.id. The gateway's HTTP method is set to GET and the authorization flag is set to NONE.
Shortcut: tf_aws_api_gateway_method
resource "aws_api_gateway_method" "${MyDemoMethod}" {
rest_api_id = "\${aws_api_gateway_rest_api.MyDemoAPI.id}"
resource_id = "\${aws_api_gateway_resource.MyDemoResource.id}"
http_method = "GET"
authorization = "NONE"
}