hashicorp/terraform — pull request #623 by snehaso (2014-12-03 08:57:15+00:00)
Title: [AWS] implemented resource aws_network_acl

This PR adds support for AWS network Acls. The resource contract is

```
resource "aws_network_acl" "foos" {
vpc_id = "${aws_vpc.foo.id}"
ingress = {
protocol = "tcp"
rule_no = 2
action = "deny"
cidr_block = "10.2.2.3/18"
from_port = 0
to_port = 22
}
egress = {
protocol = "tcp"
rule_no = 1
action = "allow"
cidr_block = "10.2.10.3/18"
from_port = 80
to_port = 80
}
subnet_id = "${aws_subnet.blob.id}"
}

```

vpc_id is only mandatory field, others are optional. Inbound and Outbound rules are specified as ingress and egress sets. This conventions is similar to how security_groups are currently implemented.

This PR depends on https://github.com/mitchellh/goamz/pull/153 PR raised in goamz. Please merge https://github.com/mitchellh/goamz/pull/153 before merging this PR.

I have added acceptance tests for adding ingress/egress rules and associating subnet with given network acl.

Missing bits:
Currently delta update of egress/ingress rule fails. I am currently working on it.