alibaba/terraform-alicloud-vpc

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

Homepage:

Size: 13

Language: HCL

GitHub Committers

UserMost Recent Commit# Commits

Other Committers

UserEmailMost Recent Commit# Commits

README

Alicloud VPC, VSwitch and Route Entry Terraform Module

terraform-alicloud-vpc

A terraform module to provide an Alicloud VPC, VSwitch and configure route entry for it.

Usage

You can use this in your terraform template with the following steps.

  1. 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}"
    
    }
    
  2. Setting values for the following variables, either through terraform.tfvars or environment variables or -var arguments on the CLI

  3. alicloud_access_key

  4. alicloud_secret_key

  5. destination_cidrs

  6. server_ids

Authors

Created and maintained by He Guimin(@xiaozhu36 heguimin36@163.com)

Reference

This work is supported by the National Institutes of Health's National Center for Advancing Translational Sciences, Grant Number U24TR002306. This work is solely the responsibility of the creators and does not necessarily represent the official views of the National Institutes of Health.