github.com/candidpartners/terraform@v0.9.5-0.20171005231213-29f5f88820f6/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 }