github.com/chalford/terraform@v0.3.7-0.20150113080010-a78c69a8c81f/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. 12 13 ## Example Usage 14 15 ``` 16 resource "aws_db_security_group" "default" { 17 name = "rds_sg" 18 description = "RDS default security group" 19 20 ingress { 21 cidr = "10.0.0.0/24" 22 } 23 } 24 ``` 25 26 ## Argument Reference 27 28 The following arguments are supported: 29 30 * `name` - (Required) The name of the DB security group. 31 * `description` - (Required) The description of the DB security group. 32 * `ingress` - (Optional) A list of ingress rules. 33 34 Ingress blocks support the following: 35 36 * `cidr` - The CIDR block to accept 37 * `security_group_name` - The name of the security group to authorize 38 * `security_group_id` - The ID of the security group to authorize 39 * `security_group_owner_id` - The owner Id of the security group provided 40 by `security_group_name`. 41 42 ## Attributes Reference 43 44 The following attributes are exported: 45 46 * `id` - The db security group ID. 47