diff --git a/website/source/docs/providers/aws/r/autoscale.html.markdown b/website/source/docs/providers/aws/r/autoscale.html.markdown new file mode 100644 index 000000000..e1e2481d5 --- /dev/null +++ b/website/source/docs/providers/aws/r/autoscale.html.markdown @@ -0,0 +1,57 @@ +--- +layout: "aws" +page_title: "AWS: aws_autoscaling_group" +sidebar_current: "docs-aws-resource-autoscale" +--- + +# aws\_autoscaling\_group + +Provides an AutoScaling Group resource. + +## Example Usage + +``` +resource "aws_autoscaling_group" "bar" { + availability_zones = ["us-east-1a"] + name = "foobar3-terraform-test" + max_size = 5 + min_size = 2 + health_check_grace_period = 300 + health_check_type = "ELB" + desired_capicity = 4 + force_delete = true + launch_configuration = "${aws_launch_configuration.foobar.name}" +} +``` + +## Argument Reference + +The following arguments are supported: + +* `name` - (Required) The name of the auto scale group. +* `max_size` - (Required) The maximum size of the auto scale group. +* `min_size` - (Required) The minimum size of the auto scale group. +* `availability_zones` - (Required) A list of AZs to launch resources in. +* `launch_configuration` - (Required) The ID of the launch configuration to use. +* `health_check_grace_period` - (Optional) Time after instance comes into service before checking health. +* `health_check_type` - (Optional) "EC2" or "ELB". Controls how health checking is done. +* `desired_capicity` - (Optional) The number of Amazon EC2 instances that should be running in the group. +* `force_delete` - (Optional) Allows deleting the autoscaling group without waiting + for all instances in the pool to terminate. + +## Attributes Reference + +The following attributes are exported: + +* `id` - The autoscaling group name. +* `availability_zones` - The availability zones of the autoscale group. +* `min_size` - The minimum size of the autoscale group +* `max_size` - The maximum size of the autoscale group +* `default_cooldown` - Time between a scaling activity and the succeeding scaling activity. +* `name` - The name of the autoscale group +* `health_check_grace_period` - Time after instance comes into service before checking health. +* `health_check_type` - "EC2" or "ELB". Controls how health checking is done. +* `desired_capicity` -The number of Amazon EC2 instances that should be running in the group. +* `launch_configuration` - The launch configuration of the autoscale group +* `vpc_zone_identifier` - The VPC zone identifier + diff --git a/website/source/docs/providers/aws/r/db_instance.html.markdown b/website/source/docs/providers/aws/r/db_instance.html.markdown new file mode 100644 index 000000000..e5de48776 --- /dev/null +++ b/website/source/docs/providers/aws/r/db_instance.html.markdown @@ -0,0 +1,71 @@ +--- +layout: "aws" +page_title: "AWS: aws_db_instance" +sidebar_current: "docs-aws-resource-db-instance" +--- + +# aws\_db\_instance + +Provides an RDS instance resource. + +## Example Usage + +``` +resource "aws_db_instance" "default" { + identifier = "mydb-rds" + allocated_storage = 10 + engine = "mysql" + engine_version = "5.6.17" + instance_class = "db.t1.micro" + name = "mydb" + username = "foo" + password = "bar" + security_group_names = ["${aws_db_security_group.bar.name}"] +} +``` + +## Argument Reference + +The following arguments are supported: + +* `allocated_storage` - (Required) The allocated storage in gigabytes. +* `engine` - (Required) The database engine to use. +* `engine_version` - (Required) The engine version to use. +* `identifier` - (Required) The name of the RDS instance +* `instance_class` - (Required) The instance type of the RDS instance. +* `name` - (Required) The DB name to create. +* `password` - (Required) Password for the master DB user. +* `username` - (Required) Username for the master DB user. +* `availability_zone` - (Optional) The AZ for the RDS instance. +* `backup_retention_period` - (Optional) The days to retain backups for. +* `backup_window` - (Optional) The backup window. +* `iops` - (Optional) The amount of provisioned IOPS +* `maintenance_window` - (Optional) The window to perform maintanence in. +* `multi_az` - (Optional) Specifies if the RDS instance is multi-AZ +* `port` - (Optional) The port on which the DB accepts connetions. +* `publicly_accessible` - (Optional) Bool to control if instance is publically accessible. +* `vpc_security_group_ids` - (Optional) List of VPC security groups to associate. +* `skip_final_snapshot` - (Optional) Enables skipping the final snapshot on deletion. +* `security_group_names` - (Optional) List of DB Security Groups to associate. + +## Attributes Reference + +The following attributes are exported: + +* `id` - The RDS instance ID. +* `address` - The address of the RDS instance. +* `allocated_storage` - The amount of allocated storage +* `availability_zone` - The availability zone of the instance +* `backup_retention_period` - The backup retention period +* `backup_window` - The backup window +* `endpoint` - The connection endpoint +* `engine` - The database engine +* `engine_version` - The database engine version +* `instance_class`- The RDS instance class +* `maintenance_window` - The instance maintenance window +* `multi_az` - If the RDS instance is multi AZ enabled +* `name` - The database name +* `port` - The database port +* `status` - The RDS instance status +* `username` - The master username for the database + diff --git a/website/source/docs/providers/aws/r/db_security_group.html.markdown b/website/source/docs/providers/aws/r/db_security_group.html.markdown new file mode 100644 index 000000000..61fde66c9 --- /dev/null +++ b/website/source/docs/providers/aws/r/db_security_group.html.markdown @@ -0,0 +1,43 @@ +--- +layout: "aws" +page_title: "AWS: aws_db_security_group" +sidebar_current: "docs-aws-resource-db-security-group" +--- + +# aws\_db\_security\_group + +Provides an RDS security group resource. + +## Example Usage + +``` +resource "aws_db_security_group" "default" { + name = "RDS default security group" + ingress { + cidr = "10.0.0.1/24" + } +} +``` + +## Argument Reference + +The following arguments are supported: + +* `name` - (Required) The name of the DB security group. +* `description` - (Required) The description of the DB security group. +* `ingress` - (Optional) A list of ingress rules. + +Ingress blocks support the following: + +* `cidr` - The CIDR block to accept +* `security_group_name` - The name of the security group to authorize +* `security_group_id` - The ID of the security group to authorize +* `security_group_owner_id` - The owner Id of the security group provided + by `security_group_name`. + +## Attributes Reference + +The following attributes are exported: + +* `id` - The db security group ID. + diff --git a/website/source/layouts/aws.erb b/website/source/layouts/aws.erb index b1d6397b2..c0c913ee2 100644 --- a/website/source/layouts/aws.erb +++ b/website/source/layouts/aws.erb @@ -13,6 +13,18 @@