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"
      }
      Terraform language logo

      aws_api_gateway_method

      Terraform snippets

      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

      0 Comments

        Add Comment

        Log in to add a comment

        Codiga - All rights reserved 2022.