openstack_compute_secgroup_v2

    0

    0

    lucycodes42

    Terraform snippets

    This code creates a secgroup named my-description-${myResourceName} and defines rules that allow TCP traffic from the instance's port 22 to the instance's port 22 on the CIDR 0.0.0.0/0 network.

    Shortcut: tf_openstack_compute_secgroup_v2

    resource "openstack_compute_secgroup_v2" "${myResourceName}" {
       name = "my-${myResourceName}"
       description = "my-description-${myResourceName}"
    
       rule {
           from_port = 22
           to_port = 22
           ip_protocol = "tcp"
           cidr = "0.0.0.0/0"
       }
    }
    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.