|
| 1 | +--- |
| 2 | +subcategory: "Tencent Cloud Service Engine(TSE)" |
| 3 | +layout: "tencentcloud" |
| 4 | +page_title: "TencentCloud: tencentcloud_tse_cngw_group" |
| 5 | +sidebar_current: "docs-tencentcloud-resource-tse_cngw_group" |
| 6 | +description: |- |
| 7 | + Provides a resource to create a tse cngw_group |
| 8 | +--- |
| 9 | + |
| 10 | +# tencentcloud_tse_cngw_group |
| 11 | + |
| 12 | +Provides a resource to create a tse cngw_group |
| 13 | + |
| 14 | +## Example Usage |
| 15 | + |
| 16 | +```hcl |
| 17 | +variable "availability_zone" { |
| 18 | + default = "ap-guangzhou-4" |
| 19 | +} |
| 20 | +
|
| 21 | +resource "tencentcloud_vpc" "vpc" { |
| 22 | + cidr_block = "10.0.0.0/16" |
| 23 | + name = "tf_tse_vpc" |
| 24 | +} |
| 25 | +
|
| 26 | +resource "tencentcloud_subnet" "subnet" { |
| 27 | + vpc_id = tencentcloud_vpc.vpc.id |
| 28 | + availability_zone = var.availability_zone |
| 29 | + name = "tf_tse_subnet" |
| 30 | + cidr_block = "10.0.1.0/24" |
| 31 | +} |
| 32 | +
|
| 33 | +resource "tencentcloud_tse_cngw_gateway" "cngw_gateway" { |
| 34 | + description = "terraform test1" |
| 35 | + enable_cls = true |
| 36 | + engine_region = "ap-guangzhou" |
| 37 | + feature_version = "STANDARD" |
| 38 | + gateway_version = "2.5.1" |
| 39 | + ingress_class_name = "tse-nginx-ingress" |
| 40 | + internet_max_bandwidth_out = 0 |
| 41 | + name = "terraform-gateway1" |
| 42 | + trade_type = 0 |
| 43 | + type = "kong" |
| 44 | +
|
| 45 | + node_config { |
| 46 | + number = 2 |
| 47 | + specification = "1c2g" |
| 48 | + } |
| 49 | +
|
| 50 | + vpc_config { |
| 51 | + subnet_id = tencentcloud_subnet.subnet.id |
| 52 | + vpc_id = tencentcloud_vpc.vpc.id |
| 53 | + } |
| 54 | +
|
| 55 | + tags = { |
| 56 | + "createdBy" = "terraform" |
| 57 | + } |
| 58 | +} |
| 59 | +
|
| 60 | +resource "tencentcloud_tse_cngw_group" "cngw_group" { |
| 61 | + description = "terraform desc" |
| 62 | + gateway_id = tencentcloud_tse_cngw_gateway.cngw_gateway.id |
| 63 | + name = "terraform-group" |
| 64 | + subnet_id = tencentcloud_subnet.subnet.id |
| 65 | +
|
| 66 | + node_config { |
| 67 | + number = 2 |
| 68 | + specification = "1c2g" |
| 69 | + } |
| 70 | +} |
| 71 | +``` |
| 72 | + |
| 73 | +## Argument Reference |
| 74 | + |
| 75 | +The following arguments are supported: |
| 76 | + |
| 77 | +* `gateway_id` - (Required, String) gateway IDonly postpaid gateway supported. |
| 78 | +* `name` - (Required, String) gateway group name. |
| 79 | +* `node_config` - (Required, List) group node configration. |
| 80 | +* `subnet_id` - (Required, String) subnet ID. Assign an IP address to the engine in the VPC subnet. Reference value:- subnet-ahde9me9. |
| 81 | +* `description` - (Optional, String) description information of group. |
| 82 | +* `internet_config` - (Optional, List) internet configration. |
| 83 | +* `internet_max_bandwidth_out` - (Optional, Int) public network outbound traffic bandwidth,[1,2048]Mbps. |
| 84 | + |
| 85 | +The `internet_config` object supports the following: |
| 86 | + |
| 87 | +* `description` - (Optional, String) description of clb. |
| 88 | +* `internet_address_version` - (Optional, String) internet type. Reference value:- IPV4 (default value)- IPV6. |
| 89 | +* `internet_max_bandwidth_out` - (Optional, Int) public network bandwidth. |
| 90 | +* `internet_pay_mode` - (Optional, String) trade type of internet. Reference value:- BANDWIDTH- TRAFFIC (default value). |
| 91 | +* `master_zone_id` - (Optional, String) primary availability zone. |
| 92 | +* `multi_zone_flag` - (Optional, Bool) Whether load balancing has multiple availability zones. |
| 93 | +* `sla_type` - (Optional, String) specification type of clb. Default shared type when this parameter is empty. Reference value:- SLA LCU-supported. |
| 94 | +* `slave_zone_id` - (Optional, String) alternate availability zone. |
| 95 | + |
| 96 | +The `node_config` object supports the following: |
| 97 | + |
| 98 | +* `number` - (Required, Int) group node number, 2-50. |
| 99 | +* `specification` - (Required, String) group specification, 1c2g|2c4g|4c8g|8c16g. |
| 100 | + |
| 101 | +## Attributes Reference |
| 102 | + |
| 103 | +In addition to all arguments above, the following attributes are exported: |
| 104 | + |
| 105 | +* `id` - ID of the resource. |
| 106 | + |
| 107 | + |
| 108 | + |
0 commit comments