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