github.com/pmcatominey/terraform@v0.7.0-rc2.0.20160708105029-1401a52a5cc5/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 22 ingress { 23 cidr = "10.0.0.0/24" 24 } 25 } 26 ``` 27 28 ## Argument Reference 29 30 The following arguments are supported: 31 32 * `name` - (Required) The name of the DB security group. 33 * `description` - (Optional) The description of the DB security group. Defaults to "Managed by Terraform". 34 * `ingress` - (Required) A list of ingress rules. 35 * `tags` - (Optional) A mapping of tags to assign to the resource. 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 * `arn` - The arn of the DB security group. 51