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