vpc
idcosregistry/vpc/tencentcloud
TencentCloud VPC Module for Terraform
TencentCloud VPC Module for Terraform terraform-tencentcloud-vpc A terraform module used to create TencentCloud VPC, subnet and route entry. The following resources are included. VPC VPC Subnet * VPC Route Entry Usage ``hcl module "vpc" { source = "terraform-tencentcloud-modules/vpc/tencentcloud" version = "1.0.3" vpc_name = "simple-vpc" vpc_cidr = "10.0.0.0/16" subnet_name = "simple-vpc" subnet_cidrs = ["10.0.0.0/24"] destination_cidrs = ["1.0.1.0/24"] next_type = ["EIP"] next_hub = ["0"] tags = { module = "vpc" } vpc_tags = { test = "vpc" } subnet_tags = { test = "subnet" } } ` Conditional Creation This module can create VPC and VPC Subnet. It is possible to use existing VPC when specify vpc_id` parameter. Inputs | Name | Description | Type | Default | Required | |------|-------------|:-
| Name | Type | Description | Default |
|---|---|---|---|
| gpu_core_count | number | GPU core count used to query supported available zones. | 0 |
| vpc_name | string | The vpc name used to launch a new vpc when 'vpc_id' is not specified. | "tf-modules-vpc" |
| destination_cidrs | list(string) | List of destination CIDR blocks of router table in the specified VPC. | [] |
| tags | map(string) | A map of tags to add to all resources. | {} |
| memory_size | number | Memory size used to query supported available zones. | 2 |
| vpc_cidr | string | The cidr block used to launch a new vpc when 'vpc_id' is not specified. | "172.16.0.0/16" |
| vpc_dns_servers | list(string) | Specify the vpc dns servers when 'vpc_id' is not specified. | [] |
| subnet_cidrs | list(string) | Specify the subnet cidr blocks when 'vpc_id' is not specified. | [] |
| subnet_is_multicast | bool | Specify the subnet is multicast when 'vpc_id' is not specified. | true |
| subnet_tags | map(string) | Additional tags for the subnet. | {} |
| next_type | list(string) | List of next hop types of router table in the specified vpc. | [] |
| cpu_core_count | number | CPU core count used to query supported available zones. | 1 |
| next_hub | list(string) | List of next hop gateway id of router table in the specified vpc. | [] |
| vpc_is_multicast | bool | Specify the vpc is multicast when 'vpc_id' is not specified. | true |
| vpc_tags | map(string) | Additional tags for the vpc. | {} |
| subnet_name | string | Specify the subnet name when 'vpc_id' is not specified. | "tf-modules-subnet" |
| vpc_id | string | The vpc id used to launch resources. | "" |
| route_table_id | string | The route table id of router table in the specified vpc. | "" |
| number_format | string | The number format used to output. | "%02d" |
| availability_zones | list(string) | List of available zones to launch resources. | [] |
vpc_id — The id of vpc.subnet_id — The id of subnet.route_table_id — The id of route table.route_entry_id — The id of route table entry.availability_zones — The availability zones of instance type.