The stateful
property of an Openstack security group can be configured in Terraform by setting the egress.#.stateful
argument to true
. This sets the rule to be stateful, meaning that responses to allowed outbound traffic are automatically allowed to return to the originating instance. For example:
resource "openstack_networking_secgroup_v2" "example" {
name = "example-security-group"
rule {
remote_ip_prefix = "0.0.0.0/0"
direction = "egress"
protocol = "tcp"
port_range_min = 1
port_range_max = 65535
stateful = true
}
}
Asked: 2023-06-29 21:59:20 +0000
Seen: 13 times
Last updated: Jun 29 '23