github.com/nathanielks/terraform@v0.6.1-0.20170509030759-13e1a62319dc/website/source/docs/providers/aws/r/redshift_security_group.html.markdown (about)

     1  ---
     2  layout: "aws"
     3  page_title: "AWS: aws_redshift_security_group"
     4  sidebar_current: "docs-aws-resource-redshift-security-group"
     5  description: |-
     6    Provides a Redshift security group resource.
     7  ---
     8  
     9  # aws\_redshift\_security\_group
    10  
    11  Creates a new Amazon Redshift security group. You use security groups to control access to non-VPC clusters
    12  
    13  ## Example Usage
    14  
    15  ```hcl
    16  resource "aws_redshift_security_group" "default" {
    17    name = "redshift-sg"
    18  
    19    ingress {
    20      cidr = "10.0.0.0/24"
    21    }
    22  }
    23  ```
    24  
    25  ## Argument Reference
    26  
    27  The following arguments are supported:
    28  
    29  * `name` - (Required) The name of the Redshift security group.
    30  * `description` - (Optional) The description of the Redshift security group. Defaults to "Managed by Terraform".
    31  * `ingress` - (Optional) A list of ingress rules.
    32  
    33  Ingress blocks support the following:
    34  
    35  * `cidr` - The CIDR block to accept
    36  * `security_group_name` - The name 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 Redshift security group ID.
    45  
    46  ## Import
    47  
    48  Redshift security groups can be imported using the `name`, e.g.
    49  
    50  ```
    51  $ terraform import aws_redshift_security_group.testgroup1 redshift_test_group
    52  ```