github.com/ezbercih/terraform@v0.1.1-0.20140729011846-3c33865e0839/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 default security group"
    16      ingress {
    17          cidr = "10.0.0.1/24"
    18      }
    19  }
    20  ```
    21  
    22  ## Argument Reference
    23  
    24  The following arguments are supported:
    25  
    26  * `name` - (Required) The name of the DB security group.
    27  * `description` - (Required) The description of the DB security group.
    28  * `ingress` - (Optional) A list of ingress rules.
    29  
    30  Ingress blocks support the following:
    31  
    32  * `cidr` - The CIDR block to accept
    33  * `security_group_name` - The name of the security group to authorize
    34  * `security_group_id` - The ID of the security group to authorize
    35  * `security_group_owner_id` - The owner Id of the security group provided
    36    by `security_group_name`.
    37  
    38  ## Attributes Reference
    39  
    40  The following attributes are exported:
    41  
    42  * `id` - The db security group ID.
    43