mirror of
https://github.com/opentffoundation/opentf.git
synced 2026-03-15 16:00:26 -04:00
``` % make testacc TEST=./builtin/providers/aws TESTARGS='-run=TestAccAWSRedshiftSecurityGroup_' ==> Checking that code complies with gofmt requirements... go generate $(go list ./... | grep -v /terraform/vendor/) TF_ACC=1 go test ./builtin/providers/aws -v -run=TestAccAWSRedshiftSecurityGroup_ -timeout 120m === RUN TestAccAWSRedshiftSecurityGroup_importBasic --- PASS: TestAccAWSRedshiftSecurityGroup_importBasic (30.87s) === RUN TestAccAWSRedshiftSecurityGroup_ingressCidr --- PASS: TestAccAWSRedshiftSecurityGroup_ingressCidr (30.45s) === RUN TestAccAWSRedshiftSecurityGroup_updateIngressCidr --- PASS: TestAccAWSRedshiftSecurityGroup_updateIngressCidr (72.78s) === RUN TestAccAWSRedshiftSecurityGroup_ingressSecurityGroup --- PASS: TestAccAWSRedshiftSecurityGroup_ingressSecurityGroup (49.73s) === RUN TestAccAWSRedshiftSecurityGroup_updateIngressSecurityGroup --- PASS: TestAccAWSRedshiftSecurityGroup_updateIngressSecurityGroup (92.44s) PASS ok github.com/hashicorp/terraform/builtin/providers/aws 276.291s ```
1.3 KiB
1.3 KiB
layout, page_title, sidebar_current, description
| layout | page_title | sidebar_current | description |
|---|---|---|---|
| aws | AWS: aws_redshift_security_group | docs-aws-resource-redshift-security-group | Provides a Redshift security group resource. |
aws_redshift_security_group
Creates a new Amazon Redshift security group. You use security groups to control access to non-VPC clusters
Example Usage
resource "aws_redshift_security_group" "default" {
name = "redshift_sg"
ingress {
cidr = "10.0.0.0/24"
}
}
Argument Reference
The following arguments are supported:
name- (Required) The name of the Redshift security group.description- (Optional) The description of the Redshift security group. Defaults to "Managed by Terraform".ingress- (Optional) A list of ingress rules.
Ingress blocks support the following:
cidr- The CIDR block to acceptsecurity_group_name- The name of the security group to authorizesecurity_group_owner_id- The owner Id of the security group provided bysecurity_group_name.
Attributes Reference
The following attributes are exported:
id- The Redshift security group ID.
Import
Redshift security groups can be imported using the name, e.g.
$ terraform import aws_redshift_security_group.testgroup1 redshift_test_group