vpc

alibaba/vpc/alicloud

Terraform Module HCL ALICLOUD

Terraform module which creates VPC and Subnet resources on Alibaba Cloud.

Install
module "vpc" {
source = "alibaba/vpc/alicloud"
version = "1.11.1"
}
⭐ Source on GitHub 📦 Registry page
README

Alicloud VPC, VSwitch and Route Entry Terraform Module terraform-alicloud-vpc ========================================= English | 简体中文 A terraform module used to create an Alibaba Cloud VPC, several VSwitches and configure route entry. - The module contains one VPC, several VSwitches and several custom route entries. - If VPC is not specified, the module will launch a new one using default parameters. - The number of VSwitch depends on the length of the parameter vswitch_cidrs. - The number of custom route entry depends on the length of the parameter destination_cidrs - Each VSwitch needs an availability zone. If the length of availability_zones is less than the length of vswitch_cidrs, availability_zones item will be used repeatedly. The following resources are supported: VPC VSwitch Rout

Inputs (20)
NameTypeDescriptionDefault
vpc_descriptionstringThe vpc description used to launch a new vpc."A new VPC created by Terrafrom module t
vpc_cidrstringThe cidr block used to launch a new vpc."172.16.0.0/12"
resource_group_idstringThe Id of resource group which the instance belongs.""
vswitch_descriptionstringThe vswitch description used to launch several new vswitch."New VSwitch created by Terrafrom module
nexthop_idslist(string)List of next hop instance IDs of virtual router in the specified VPC.[]
createboolWhether to create vpc. If false, you can specify an existing vpc by setting 'vpctrue
vpc_idstringThe vpc id used to launch several vswitches. If set, the 'create' will be ignore""
vpc_namestringThe vpc name used to launch a new vpc."TF-VPC"
vpc_name_regexstring(Deprecated) It has been deprecated from 1.5.0.""
vswitch_cidrslist(string)List of cidr blocks used to launch several new vswitches. If not set, there is n[]
vswitch_namestringThe vswitch name prefix used to launch several new vswitches."TF-VSwitch"
vswitch_tagsmap(string)The tags used to launch serveral vswitches.{}
vpc_tagsmap(string)The tags used to launch a new vpc. Before 1.5.0, it used to retrieve existing VP{}
use_num_suffixboolAlways append numerical suffix(like 001, 002 and so on) to vswitch name, even iffalse
profilestring(Deprecated from version 1.9.0) The profile name as set in the shared credential""
skip_region_validationbool(Deprecated from version 1.9.0) Skip static validation of region ID. Used by usefalse
availability_zoneslist(string)List available zones to launch several VSwitches.[]
destination_cidrslist(string)List of destination CIDR block of virtual router in the specified VPC.[]
regionstring(Deprecated from version 1.9.0) The region used to launch this module resources.""
shared_credentials_filestring(Deprecated from version 1.9.0) This is the path to the shared credentials file.""
Outputs (18)
router_id — Deprecated and use this_router_id instead
this_resource_group_id — The Id of resource group which the instance belongs.
vswitch_ids — Deprecated and use this_vswitch_ids instead
this_vpc_tags — The VPC tags
this_availability_zones — List of availability zones in which vswitches launched.
this_router_id — The vpc router id.
this_vpc_id — The VPC id
this_vpc_name — The VPC name
this_vswitch_ids — List of vswitch ids
this_vswitch_names — List of vswitch names
this_vswitch_cidr_blocks — The vswitch cidr block
cidr_block — Deprecated and use this_vpc_cidr_block instead
availability_zones — Deprecated and use this_availability_zones instead
route_table_id — Deprecated and use this_route_table_id instead
this_vpc_cidr_block — The VPC cidr block
this_vswitch_tags — List of vswitch tags.
this_route_table_id — The vpc route table id.
vpc_id — Deprecated and use this_vpc_id instead
Resources (3)
alicloud_route_entryalicloud_vpcalicloud_vswitch
Details
FrameworkTerraform Module
LanguageHCL
Version1.11.1
Cloud ALICLOUD
★ Stars18
Forks39
Total downloads151.1k
Inputs20
Outputs18
Resources3
Examples2
LicenseMIT
Namespacealibaba
Updated