github.com/andresvia/terraform@v0.6.15-0.20160412045437-d51c75946785/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 ``` 16 resource "aws_redshift_security_group" "default" { 17 name = "redshift_sg" 18 description = "Redshift Example 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 Redshift security group. 31 * `description` - (Required) The description of the Redshift 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_owner_id` - The owner Id of the security group provided 39 by `security_group_name`. 40 41 ## Attributes Reference 42 43 The following attributes are exported: 44 45 * `id` - The Redshift security group ID. 46