-
Notifications
You must be signed in to change notification settings - Fork 9.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #779 from svanharmelen/f-fix-cloudstack-docs
website: Adding some needed references and updated a couple of passes
- Loading branch information
Showing
6 changed files
with
26 additions
and
48 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
53 changes: 13 additions & 40 deletions
53
website/source/docs/providers/cloudstack/r/network_acl.html.markdown
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,62 +1,35 @@ | ||
--- | ||
layout: "aws" | ||
page_title: "AWS: aws_network_acl" | ||
sidebar_current: "docs-aws-resource-network-acl" | ||
layout: "cloudstack" | ||
page_title: "CloudStack: cloudstack_network_acl" | ||
sidebar_current: "docs-cloudstack-resource-network-acl" | ||
description: |- | ||
Provides an network ACL resource. | ||
Creates a Network ACL for the given VPC. | ||
--- | ||
|
||
# aws\_network\_acl | ||
# cloudstack\_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. | ||
Creates a Network ACL for the given 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 | ||
} | ||
resource "cloudstack_network_acl" "default" { | ||
name = "test-acl" | ||
vpc = "vpc-1" | ||
} | ||
``` | ||
|
||
## 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) Specifies 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. | ||
* `name` - (Required) The name of the ACL. Changing this forces a new resource to be created. | ||
* `description` - (Optional) The description of the ACL. Changing this forces a new resource to be created. | ||
* `vpc` - (Required) The name of the VPC to create this ACL for. Changing this forces a new resource to be created. | ||
|
||
## Attributes Reference | ||
|
||
The following attributes are exported: | ||
|
||
* `id` - The ID of the network ACL | ||
* `id` - The ID of the Network ACL | ||
|
2 changes: 1 addition & 1 deletion
2
website/source/docs/providers/cloudstack/r/network_acl_rule.html.markdown
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters