mirror of
https://github.com/opentofu/opentofu.git
synced 2025-01-08 23:23:59 -06:00
22 lines
386 B
HCL
22 lines
386 B
HCL
provider "alicloud" {
|
|
alias = "bj"
|
|
region = "${var.region1}"
|
|
}
|
|
|
|
provider "alicloud" {
|
|
alias = "hz"
|
|
region = "${var.region2}"
|
|
}
|
|
|
|
resource "alicloud_vpc" "work" {
|
|
provider = "alicloud.hz"
|
|
name = "${var.long_name}"
|
|
cidr_block = "${var.vpc_cidr}"
|
|
}
|
|
|
|
resource "alicloud_vpc" "control" {
|
|
provider = "alicloud.bj"
|
|
name = "${var.long_name}"
|
|
cidr_block = "${var.vpc_cidr}"
|
|
}
|