Ask Your Question
0

What is the method for configuring the stateful property of an Openstack security group in Terraform?

asked 2023-06-29 21:59:20 +0000

lakamha gravatar image

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
2

answered 2023-06-29 22:10:02 +0000

qstack gravatar image

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
  }
}
edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account. This space is reserved only for answers. If you would like to engage in a discussion, please instead post a comment under the question or an answer that you would like to discuss

Add Answer


Question Tools

Stats

Asked: 2023-06-29 21:59:20 +0000

Seen: 13 times

Last updated: Jun 29 '23