FEATURES PRICING ABOUT DOCS LOGIN

aws_network_acl_rule

Creates an entry (a rule) in a network ACL with the specified rule number.

Example Usage

resource "aws_network_acl" "bar" {
	vpc_id = "${aws_vpc.foo.id}"
}
resource "aws_network_acl_rule" "bar" {
	network_acl_id = "${aws_network_acl.bar.id}"
	rule_number = 200
	egress = false
	protocol = "tcp"
	rule_action = "allow"
	cidr_block = "0.0.0.0/0"
	from_port = 22
	to_port = 22
}

Argument Reference

The following arguments are supported:

~> NOTE: If the value of protocol is -1 or all, the from_port and to_port values will be ignored and the rule will apply to all ports.

~> NOTE: If the value of icmp_type is -1 (which results in a wildcard ICMP type), the icmp_code must also be set to -1 (wildcard ICMP code).

~> Note: For more information on ICMP types and codes, see here: http://www.nthelp.com/icmp.html

Attributes Reference

The following attributes are exported:


See the source of this document at Terraform.io

REQUEST A DEMO