Adding some needed references and updated a couple of passes

This commit is contained in:
Sander van Harmelen 2015-01-13 11:28:05 +01:00
parent a78c69a8c8
commit 68a6e7197f
6 changed files with 26 additions and 48 deletions

View File

@ -10,6 +10,7 @@ body.layout-atlas,
body.layout-consul, body.layout-consul,
body.layout-dnsimple, body.layout-dnsimple,
body.layout-cloudflare, body.layout-cloudflare,
body.layout-cloudstack,
body.layout-google, body.layout-google,
body.layout-heroku, body.layout-heroku,
body.layout-mailgun, body.layout-mailgun,

View File

@ -15,11 +15,11 @@ disk offering, and template.
``` ```
resource "cloudstack_instance" "web" { resource "cloudstack_instance" "web" {
ami = "ami-1234" name = "server-1"
instance_type = "m1.small" service_offering= "small"
tags { network = "network-1"
Name = "HelloWorld" template = "CentOS 6.5"
} zone = "zone-1"
} }
``` ```

View File

@ -1,38 +1,21 @@
--- ---
layout: "aws" layout: "cloudstack"
page_title: "AWS: aws_network_acl" page_title: "CloudStack: cloudstack_network_acl"
sidebar_current: "docs-aws-resource-network-acl" sidebar_current: "docs-cloudstack-resource-network-acl"
description: |- 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 Creates a Network ACL for the given VPC.
to your security groups in order to add an additional layer of security to your VPC.
## Example Usage ## Example Usage
``` ```
resource "aws_network_acl" "main" { resource "cloudstack_network_acl" "default" {
vpc_id = "${aws_vpc.main.id}" name = "test-acl"
egress = { vpc = "vpc-1"
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
}
} }
``` ```
@ -40,23 +23,13 @@ resource "aws_network_acl" "main" {
The following arguments are supported: The following arguments are supported:
* `vpc_id` - (Required) The ID of the associated VPC. * `name` - (Required) The name of the ACL. Changing this forces a new resource to be created.
* `subnet_id` - (Optional) The ID of the associated subnet. * `description` - (Optional) The description of the ACL. Changing this forces a new resource to be created.
* `ingress` - (Optional) Specifies an ingress rule. Parameters defined below. * `vpc` - (Required) The name of the VPC to create this ACL for. Changing this forces a new resource to be created.
* `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.
## Attributes Reference ## Attributes Reference
The following attributes are exported: The following attributes are exported:
* `id` - The ID of the network ACL * `id` - The ID of the Network ACL

View File

@ -1,7 +1,7 @@
--- ---
layout: "cloudstack" layout: "cloudstack"
page_title: "CloudStack: cloudstack_network_acl_rule" page_title: "CloudStack: cloudstack_network_acl_rule"
sidebar_current: "docs-cloudstack-resource-network_acl_rule" sidebar_current: "docs-cloudstack-resource-network-acl-rule"
description: |- description: |-
Creates network ACL rules for a given network ACL. Creates network ACL rules for a given network ACL.
--- ---

View File

@ -33,11 +33,11 @@
<a href="/docs/providers/cloudstack/r/network.html">cloudstack_network</a> <a href="/docs/providers/cloudstack/r/network.html">cloudstack_network</a>
</li> </li>
<li<%= sidebar_current("docs-cloudstack-resource-network_acl") %>> <li<%= sidebar_current("docs-cloudstack-resource-network-acl") %>>
<a href="/docs/providers/cloudstack/r/network_acl.html">cloudstack_network_acl</a> <a href="/docs/providers/cloudstack/r/network_acl.html">cloudstack_network_acl</a>
</li> </li>
<li<%= sidebar_current("docs-cloudstack-resource-network_acl_rule") %>> <li<%= sidebar_current("docs-cloudstack-resource-network-acl-rule") %>>
<a href="/docs/providers/cloudstack/r/network_acl_rule.html">cloudstack_network_acl_rule</a> <a href="/docs/providers/cloudstack/r/network_acl_rule.html">cloudstack_network_acl_rule</a>
</li> </li>

View File

@ -116,6 +116,10 @@
<a href="/docs/providers/cloudflare/index.html">CloudFlare</a> <a href="/docs/providers/cloudflare/index.html">CloudFlare</a>
</li> </li>
<li<%= sidebar_current("docs-providers-cloudstack") %>>
<a href="/docs/providers/cloudstack/index.html">CloudStack</a>
</li>
<li<%= sidebar_current("docs-providers-consul") %>> <li<%= sidebar_current("docs-providers-consul") %>>
<a href="/docs/providers/consul/index.html">Consul</a> <a href="/docs/providers/consul/index.html">Consul</a>
</li> </li>