github.com/hobbeswalsh/terraform@v0.3.7-0.20150619183303-ad17cf55a0fa/website/source/docs/providers/aws/r/db_security_group.html.markdown (about) 1 --- 2 layout: "aws" 3 page_title: "AWS: aws_db_security_group" 4 sidebar_current: "docs-aws-resource-db-security-group" 5 description: |- 6 Provides an RDS security group resource. 7 --- 8 9 # aws\_db\_security\_group 10 11 Provides an RDS security group resource. This is only for DB instances in the 12 EC2-Classic Platform. For instances inside a VPC, use the 13 [`aws_db_instance.vpc_security_group_ids`](/docs/providers/aws/r/db_instance.html#vpc_security_group_ids) 14 attribute instead. 15 16 ## Example Usage 17 18 ``` 19 resource "aws_db_security_group" "default" { 20 name = "rds_sg" 21 description = "RDS default security group" 22 23 ingress { 24 cidr = "10.0.0.0/24" 25 } 26 } 27 ``` 28 29 ## Argument Reference 30 31 The following arguments are supported: 32 33 * `name` - (Required) The name of the DB security group. 34 * `description` - (Required) The description of the DB security group. 35 * `ingress` - (Optional) A list of ingress rules. 36 37 Ingress blocks support the following: 38 39 * `cidr` - The CIDR block to accept 40 * `security_group_name` - The name of the security group to authorize 41 * `security_group_id` - The ID of the security group to authorize 42 * `security_group_owner_id` - The owner Id of the security group provided 43 by `security_group_name`. 44 45 ## Attributes Reference 46 47 The following attributes are exported: 48 49 * `id` - The db security group ID. 50