Files
opentf/website/source/docs/providers/cloudstack/r/network_acl.html.markdown
Sander van Harmelen 4910423d83 First release of a provider for CloudStack
Of course not all resources are covered by this first release, but
there should be enough resources available to handle most common
operations.

Tests and docs are included.
2014-12-10 22:20:52 +01:00

1.5 KiB

layout, page_title, sidebar_current, description
layout page_title sidebar_current description
aws AWS: aws_network_acl docs-aws-resource-network-acl Provides an network ACL resource.

aws_network_acl

Provides an network ACL resource. You might set up network ACLs with rules similar to your security groups in order to add an additional layer of security to your VPC.

Example Usage

resource "aws_network_acl" "main" {
	vpc_id = "${aws_vpc.main.id}"
	egress = {
		protocol = "tcp"
		rule_no = 2
		action = "allow"
		cidr_block =  "10.3.2.3/18"
		from_port = 443
		to_port = 443
	}

	ingress = {
		protocol = "tcp"
		rule_no = 1
		action = "allow"
		cidr_block =  "10.3.10.3/18"
		from_port = 80
		to_port = 80
	}
}

Argument Reference

The following arguments are supported:

  • vpc_id - (Required) The ID of the associated VPC.
  • subnet_id - (Optional) The ID of the associated subnet.
  • ingress - (Optional) Specifies an ingress rule. Parameters defined below.
  • egress - (Optional) Speicifes an egress rule. Parameters defined below.

Both egress and ingress support the following keys:

  • from_port - (Required) The from port to match.
  • to_port - (Required) The to port to match.
  • rule_no - (Required) The rule number. Used for ordering.
  • action - (Required) The action to take.
  • protocol - (Required) The protocol to match.
  • cidr_block - (Optional) The CIDR block to match.

Attributes Reference

The following attributes are exported:

  • id - The ID of the network ACL