terraform/examples/alicloud-vpc-multi-region/main.tf

22 lines
386 B
Terraform
Raw Normal View History

2017-01-19 15:08:56 +01:00
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}"
}