terraform/examples/aws-rds/subnets.tf

20 lines
385 B
Terraform
Raw Normal View History

2015-06-09 17:02:19 +02:00
resource "aws_subnet" "subnet_1" {
vpc_id = "${var.vpc_id}"
cidr_block = "${var.subnet_1_cidr}"
availability_zone = "${var.az_1}"
tags {
Name = "main_subnet1"
}
}
resource "aws_subnet" "subnet_2" {
vpc_id = "${var.vpc_id}"
cidr_block = "${var.subnet_2_cidr}"
availability_zone = "${var.az_2}"
tags {
Name = "main_subnet2"
}
}