vpc
alibaba/vpc/alicloud
Terraform module which creates VPC and Subnet resources on Alibaba Cloud.
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
| Name | Type | Description | Default |
|---|---|---|---|
| vpc_description | string | The vpc description used to launch a new vpc. | "A new VPC created by Terrafrom module t |
| vpc_cidr | string | The cidr block used to launch a new vpc. | "172.16.0.0/12" |
| resource_group_id | string | The Id of resource group which the instance belongs. | "" |
| vswitch_description | string | The vswitch description used to launch several new vswitch. | "New VSwitch created by Terrafrom module |
| nexthop_ids | list(string) | List of next hop instance IDs of virtual router in the specified VPC. | [] |
| create | bool | Whether to create vpc. If false, you can specify an existing vpc by setting 'vpc | true |
| vpc_id | string | The vpc id used to launch several vswitches. If set, the 'create' will be ignore | "" |
| vpc_name | string | The vpc name used to launch a new vpc. | "TF-VPC" |
| vpc_name_regex | string | (Deprecated) It has been deprecated from 1.5.0. | "" |
| vswitch_cidrs | list(string) | List of cidr blocks used to launch several new vswitches. If not set, there is n | [] |
| vswitch_name | string | The vswitch name prefix used to launch several new vswitches. | "TF-VSwitch" |
| vswitch_tags | map(string) | The tags used to launch serveral vswitches. | {} |
| vpc_tags | map(string) | The tags used to launch a new vpc. Before 1.5.0, it used to retrieve existing VP | {} |
| use_num_suffix | bool | Always append numerical suffix(like 001, 002 and so on) to vswitch name, even if | false |
| profile | string | (Deprecated from version 1.9.0) The profile name as set in the shared credential | "" |
| skip_region_validation | bool | (Deprecated from version 1.9.0) Skip static validation of region ID. Used by use | false |
| availability_zones | list(string) | List available zones to launch several VSwitches. | [] |
| destination_cidrs | list(string) | List of destination CIDR block of virtual router in the specified VPC. | [] |
| region | string | (Deprecated from version 1.9.0) The region used to launch this module resources. | "" |
| shared_credentials_file | string | (Deprecated from version 1.9.0) This is the path to the shared credentials file. | "" |
router_id — Deprecated and use this_router_id insteadthis_resource_group_id — The Id of resource group which the instance belongs.vswitch_ids — Deprecated and use this_vswitch_ids insteadthis_vpc_tags — The VPC tagsthis_availability_zones — List of availability zones in which vswitches launched.this_router_id — The vpc router id.this_vpc_id — The VPC idthis_vpc_name — The VPC namethis_vswitch_ids — List of vswitch idsthis_vswitch_names — List of vswitch namesthis_vswitch_cidr_blocks — The vswitch cidr blockcidr_block — Deprecated and use this_vpc_cidr_block insteadavailability_zones — Deprecated and use this_availability_zones insteadroute_table_id — Deprecated and use this_route_table_id insteadthis_vpc_cidr_block — The VPC cidr blockthis_vswitch_tags — List of vswitch tags.this_route_table_id — The vpc route table id.vpc_id — Deprecated and use this_vpc_id instead