openstack_networking_secgroup_rule_v2

    0

    0

    lucycodes42

    Terraform snippets

    This code creates a new networking secgroup rule called my-${myResourceName} with the following properties:

    name: my-${myResourceName}

    description: my-description-${myResourceName}

    direction: ingress

    ethertype: IPv4

    protocol: tcp

    port_range_min: 22

    port_range_max: 22

    remote_ip_prefix: 0.0.0.0/0

    security_group_id: ${openstack_networking_secgroup_v2.secgroup_1.

    Shortcut: tf_openstack_networking_secgroup_rule_v2

    resource "openstack_networking_secgroup_rule_v2" "${myResourceName}" {
       name = "my-${myResourceName}"
       description = "my-description-${myResourceName}"
    
       direction = "ingress"
       ethertype = "IPv4"
       protocol = "tcp"
       port_range_min = 22
       port_range_max = 22
       remote_ip_prefix = "0.0.0.0/0"
       security_group_id = "\${openstack_networking_secgroup_v2.secgroup_1.id}"
    }
    Codiga Logo
    Codiga Hub
    • Rulesets
    • Explore
    • Cookbooks
    • Playground
    soc-2 icon

    We are SOC-2 Compliance Certified

    G2 high performer medal

    Codiga – All rights reserved 2022.