github.com/candidpartners/terraform@v0.9.5-0.20171005231213-29f5f88820f6/examples/alicloud-vpc-multi-region/main.tf (about)

     1  provider "alicloud" {
     2    alias = "bj"
     3    region = "${var.region1}"
     4  }
     5  
     6  provider "alicloud" {
     7    alias = "hz"
     8    region = "${var.region2}"
     9  }
    10  
    11  resource "alicloud_vpc" "work" {
    12    provider = "alicloud.hz"
    13    name = "${var.long_name}"
    14    cidr_block = "${var.vpc_cidr}"
    15  }
    16  
    17  resource "alicloud_vpc" "control" {
    18    provider = "alicloud.bj"
    19    name = "${var.long_name}"
    20    cidr_block = "${var.vpc_cidr}"
    21  }