github.com/erriapo/terraform@v0.6.12-0.20160203182612-0340ea72354f/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` - (Required) A list of ingress rules.
    36  * `tags` - (Optional) A mapping of tags to assign to the resource.
    37  
    38  Ingress blocks support the following:
    39  
    40  * `cidr` - The CIDR block to accept
    41  * `security_group_name` - The name of the security group to authorize
    42  * `security_group_id` - The ID of the security group to authorize
    43  * `security_group_owner_id` - The owner Id of the security group provided
    44    by `security_group_name`.
    45  
    46  ## Attributes Reference
    47  
    48  The following attributes are exported:
    49  
    50  * `id` - The db security group ID.
    51  * `arn` - The arn of the DB security group.
    52