FEATURES OPEN SOURCE ABOUT DOCS LOGIN REGISTER

openstack_fw_policy_v1

Manages a v1 firewall policy resource within OpenStack.

Example Usage

resource "openstack_fw_rule_v1" "rule_1" {
  name = "my-rule-1"
  description = "drop TELNET traffic"
  action = "deny"
  protocol = "tcp"
  destination_port = "23"
  enabled = "true"
}

resource "openstack_fw_rule_v1" "rule_2" {
  name = "my-rule-2"
  description = "drop NTP traffic"
  action = "deny"
  protocol = "udp"
  destination_port = "123"
  enabled = "false"
}

resource "openstack_fw_policy_v1" "policy_1" {
  name = "my-policy"
  rules = ["${openstack_fw_rule_v1.rule_1.id}",
           "${openstack_fw_rule_v1.rule_2.id}"]
}

Argument Reference

The following arguments are supported:

Attributes Reference

The following attributes are exported:

Import

Firewall Policies can be imported using the id, e.g.

$ terraform import openstack_fw_policy_v1.policy_1 07f422e6-c596-474b-8b94-fe2c12506ce0

See the source of this document at Terraform.io