diff --git a/website/source/docs/providers/aws/r/security_group.html.markdown b/website/source/docs/providers/aws/r/security_group.html.markdown new file mode 100644 index 0000000000..ea226af4c0 --- /dev/null +++ b/website/source/docs/providers/aws/r/security_group.html.markdown @@ -0,0 +1,54 @@ +--- +layout: "aws" +page_title: "AWS: aws_security_group" +sidebar_current: "docs-aws-resource-security-group" +--- + +# aws\_security\_group + +Provides an security group resource. + +## Example Usage + +``` +resource "aws_security_group" "allow_all" { + name = "allow_all" + ingress { + from_port = 0 + to_port = 65535 + protocol = "tcp" + cidr_blocks = ["0.0.0.0/0"] + } +} +``` + +## Argument Reference + +The following arguments are supported: + +* `name` - (Required) The name of the security group +* `ingress` - (Required) Can be specified multiple times for each + ingress rule. Each ingress block supports fields documented below. +* `description` - (Optional) The security group description. +* `vpc_id` - (Optional) The VPC ID. +* `owner_id` - (Optional) The AWS Owner ID. + +The `ingress` block supports: + +* `cidr_blocks` - (Optional) List of CIDR blocks. Cannot be used with `security_groups`. +* `from_port` - (Required) The start port. +* `protocol` - (Required) The protocol. +* `security_groups` - (Optional) List of security group IDs. Cannot be used with `cidr_blocks`. +* `to_port` - (Required) The end range port. + +## Attributes Reference + +The following attributes are exported: + +* `id` - The ID of the security group +* `vpc_id` - The VPC ID. +* `owner_id` - The owner ID. +* `name` - The name of the security group +* `description` - The description of the security group +* `ingress` - The ingress rules. See above for more. + diff --git a/website/source/docs/providers/aws/r/subnet.html.markdown b/website/source/docs/providers/aws/r/subnet.html.markdown new file mode 100644 index 0000000000..49912c85c2 --- /dev/null +++ b/website/source/docs/providers/aws/r/subnet.html.markdown @@ -0,0 +1,36 @@ +--- +layout: "aws" +page_title: "AWS: aws_subnet" +sidebar_current: "docs-aws-resource-subnet" +--- + +# aws\_subnet + +Provides an VPC subnet resource. + +## Example Usage + +``` +resource "aws_vpc" "main" { + vpc_id = "${aws_vpc.main.id}" + cidr_block = "10.0.1.0/16" +} +``` + +## Argument Reference + +The following arguments are supported: + +* `availability_zone`- (Optional) The AZ for the subnet. +* `cidr_block` - (Required) The CIDR block for the subnet. +* `vpc_id` - (Required) The VPC ID. + +## Attributes Reference + +The following attributes are exported: + +* `id` - The ID of the subnet +* `availability_zone`- The AZ for the subnet. +* `cidr_block` - The CIDR block for the subnet. +* `vpc_id` - The VPC ID. + diff --git a/website/source/docs/providers/aws/r/vpc.html.markdown b/website/source/docs/providers/aws/r/vpc.html.markdown new file mode 100644 index 0000000000..9f16b82d88 --- /dev/null +++ b/website/source/docs/providers/aws/r/vpc.html.markdown @@ -0,0 +1,31 @@ +--- +layout: "aws" +page_title: "AWS: aws_vpc" +sidebar_current: "docs-aws-resource-vpc" +--- + +# aws\_vpc + +Provides an VPC resource. + +## Example Usage + +``` +resource "aws_vpc" "main" { + cidr_block = "10.0.0.0/16" +} +``` + +## Argument Reference + +The following arguments are supported: + +* `cidr_block` - (Required) The CIDR block for the VPC. + +## Attributes Reference + +The following attributes are exported: + +* `id` - The ID of the VPC +* `cidr_block` - The CIDR block of the VPC + diff --git a/website/source/layouts/aws.erb b/website/source/layouts/aws.erb index 8137a2b1a5..3a5bb3b110 100644 --- a/website/source/layouts/aws.erb +++ b/website/source/layouts/aws.erb @@ -23,8 +23,19 @@