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"
         }
      }

      Terraform language logoopenstack_compute_secgroup_v2

      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

      0 Comments

        Add Comment

        Log in to add a comment

        Codiga - All rights reserved 2022.