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