github.com/jrasell/terraform@v0.6.17-0.20160523115548-2652f5232949/examples/aws-rds/sg.tf (about) 1 resource "aws_security_group" "default" { 2 name = "main_rds_sg" 3 description = "Allow all inbound traffic" 4 vpc_id = "${var.vpc_id}" 5 6 ingress { 7 from_port = 0 8 to_port = 65535 9 protocol = "TCP" 10 cidr_blocks = ["${var.cidr_blocks}"] 11 } 12 13 egress { 14 from_port = 0 15 to_port = 0 16 protocol = "-1" 17 cidr_blocks = ["0.0.0.0/0"] 18 } 19 20 tags { 21 Name = "${var.sg_name}" 22 } 23 }