aws_api_gateway_method

    0

    0

    lucycodes42

    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

    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"
    }
    Codiga Logo
    Codiga Hub
    • Rulesets
    • Playground
    • Snippets
    • Cookbooks
    Legal
    • Security
    • Privacy Policy
    • Code Privacy
    • Terms of Service
    soc-2 icon

    We are SOC-2 Compliance Certified

    G2 high performer medal

    Codiga – All rights reserved 2022.