mirror of
https://github.com/opentofu/opentofu.git
synced 2024-12-26 17:01:04 -06:00
c6beaa7ce8
Signed-off-by: Valentin Pichard <valentin.pichard@corp.ovh.com>
20 lines
393 B
HCL
20 lines
393 B
HCL
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"
|
|
}
|
|
}
|