Merge pull request #1645 from dtan4/network-acl-tags-doc
website: Add Network ACL tags document
This commit is contained in:
commit
fa85e6b769
|
@ -16,7 +16,7 @@ to your security groups in order to add an additional layer of security to your
|
|||
```
|
||||
resource "aws_network_acl" "main" {
|
||||
vpc_id = "${aws_vpc.main.id}"
|
||||
egress = {
|
||||
egress {
|
||||
protocol = "tcp"
|
||||
rule_no = 2
|
||||
action = "allow"
|
||||
|
@ -25,7 +25,7 @@ resource "aws_network_acl" "main" {
|
|||
to_port = 443
|
||||
}
|
||||
|
||||
ingress = {
|
||||
ingress {
|
||||
protocol = "tcp"
|
||||
rule_no = 1
|
||||
action = "allow"
|
||||
|
@ -33,6 +33,10 @@ resource "aws_network_acl" "main" {
|
|||
from_port = 80
|
||||
to_port = 80
|
||||
}
|
||||
|
||||
tags {
|
||||
Name = "main"
|
||||
}
|
||||
}
|
||||
```
|
||||
|
||||
|
@ -44,6 +48,7 @@ The following arguments are supported:
|
|||
* `subnet_id` - (Optional) The ID of the associated subnet.
|
||||
* `ingress` - (Optional) Specifies an ingress rule. Parameters defined below.
|
||||
* `egress` - (Optional) Specifies an egress rule. Parameters defined below.
|
||||
* `tags` - (Optional) A mapping of tags to assign to the resource.
|
||||
|
||||
Both `egress` and `ingress` support the following keys:
|
||||
|
||||
|
|
Loading…
Reference in New Issue