Name: terraform-alicloud-vpc
Owner: Alibaba
Description: Terraform module which creates VPC and Subnet resources on Alibaba Cloud.
Created: 2017-09-12 06:32:17.0
Updated: 2018-04-19 06:58:29.0
Pushed: 2017-09-26 01:02:09.0
Size: 13
Language: HCL
GitHub Committers
User | Most Recent Commit | # Commits |
---|
Other Committers
User | Most Recent Commit | # Commits |
---|
Alicloud VPC, VSwitch and Route Entry Terraform Module
A terraform module to provide an Alicloud VPC, VSwitch and configure route entry for it.
vswitch_cidrs
.destination_cidrs
cpu_core_count
and memory_size
.You can use this in your terraform template with the following steps.
Adding a module resource to your template, e.g. main.tf
module "tf-vpc-cluster" {
source = "alibaba/vpc/alicloud"
alicloud_access_key = "${var.alicloud_access_key}"
alicloud_secret_key = "${var.alicloud_secret_key}"
vpc_name = "my_module_vpc"
vswitch_name = "my_module_vswitch"
vswitch_cidr = [
"172.16.1.0/24",
"172.16.2.0/24"
]
destination_cidrs = "${var.destination_cidrs}"
nexthop_ids = "${var.server_ids}"
}
Setting values for the following variables, either through terraform.tfvars or environment variables or -var arguments on the CLI
alicloud_access_key
alicloud_secret_key
destination_cidrs
server_ids
Created and maintained by He Guimin(@xiaozhu36 heguimin36@163.com)