github.com/candidpartners/terraform@v0.9.5-0.20171005231213-29f5f88820f6/examples/aws-networking/region/security_group.tf (about) 1 resource "aws_security_group" "region" { 2 name = "region" 3 description = "Open access within this region" 4 vpc_id = "${aws_vpc.main.id}" 5 6 ingress { 7 from_port = 0 8 to_port = 0 9 protocol = -1 10 cidr_blocks = ["${aws_vpc.main.cidr_block}"] 11 } 12 } 13 14 resource "aws_security_group" "internal-all" { 15 name = "internal-all" 16 description = "Open access within the full internal network" 17 vpc_id = "${aws_vpc.main.id}" 18 19 ingress { 20 from_port = 0 21 to_port = 0 22 protocol = -1 23 cidr_blocks = ["${var.base_cidr_block}"] 24 } 25 }