github.com/jrasell/terraform@v0.6.17-0.20160523115548-2652f5232949/examples/aws-rds/subnets.tf (about) 1 resource "aws_subnet" "subnet_1" { 2 vpc_id = "${var.vpc_id}" 3 cidr_block = "${var.subnet_1_cidr}" 4 availability_zone = "${var.az_1}" 5 6 tags { 7 Name = "main_subnet1" 8 } 9 } 10 11 resource "aws_subnet" "subnet_2" { 12 vpc_id = "${var.vpc_id}" 13 cidr_block = "${var.subnet_2_cidr}" 14 availability_zone = "${var.az_2}" 15 16 tags { 17 Name = "main_subnet2" 18 } 19 }