azurerm_public_ip

    0

    0

    lucycodes42

    Terraform snippets

    The code specifies an Azure resource named "acceptanceTestPublicIp1." The resource has a name, a resource group name, a public IP allocation, and a location. The code also specifies a resource parameter named "resource_group_name." The resource group name is used to group resources together. The code assigns the public IP address allocation to the resource group name and sets the location to West US.

    Shortcut: tf_azurerm_public_ip

    resource "azurerm_public_ip" "${MyResource}" {
       name = "acceptanceTestPublicIp1"
       resource_group_name = "\${azurerm_resource_group.test.name}"
       public_ip_address_allocation = "static"
       location = "West US"
    }
    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.