FEATURES PRICING ABOUT DOCS LOGIN

aws_db_security_group

Provides an RDS security group resource. This is only for DB instances in the EC2-Classic Platform. For instances inside a VPC, use the aws_db_instance.vpc_security_group_ids attribute instead.

Example Usage

resource "aws_db_security_group" "default" {
    name = "rds_sg"

    ingress {
        cidr = "10.0.0.0/24"
    }
}

Argument Reference

The following arguments are supported:

Ingress blocks support the following:

Attributes Reference

The following attributes are exported:

Import

DB Security groups can be imported using the name, e.g.

$ terraform import aws_db_security_group.default aws_rds_sg-1

See the source of this document at Terraform.io

REQUEST A DEMO