You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Description: "1: traditional NAT, 2: standard NAT, default value is 1.",
88
89
},
90
+
"stock_public_ip_addresses_bandwidth_out": {
91
+
Type: schema.TypeInt,
92
+
Optional: true,
93
+
Computed: true,
94
+
ForceNew: true,
95
+
Description: "The elastic public IP bandwidth value (unit: Mbps) for binding NAT gateway. When this parameter is not filled in, it defaults to the bandwidth value of the elastic public IP, and for some users, it defaults to the bandwidth limit of the elastic public IP of that user type.",
96
+
},
89
97
"tags": {
90
98
Type: schema.TypeMap,
91
99
Optional: true,
@@ -163,6 +171,10 @@ func resourceTencentCloudNatGatewayCreate(d *schema.ResourceData, meta interface
163
171
request.SubnetId=helper.String(v.(string))
164
172
}
165
173
174
+
ifv, ok:=d.GetOkExists("stock_public_ip_addresses_bandwidth_out"); ok {
Copy file name to clipboardExpand all lines: tencentcloud/services/vpc/resource_tc_nat_gateway.md
+33Lines changed: 33 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -2,6 +2,8 @@ Provides a resource to create a NAT gateway.
2
2
3
3
~> **NOTE:** If `nat_product_version` is `1`, `max_concurrent` valid values is `1000000`, `3000000`, `10000000`.
4
4
5
+
~> **NOTE:** If set `stock_public_ip_addresses_bandwidth_out`, do not set the `internet_max_bandwidth_out` parameter of resource `tencentcloud_eip` at the same time, otherwise conflicts may occur.
Copy file name to clipboardExpand all lines: website/docs/r/nat_gateway.html.markdown
+34Lines changed: 34 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -13,6 +13,8 @@ Provides a resource to create a NAT gateway.
13
13
14
14
~> **NOTE:** If `nat_product_version` is `1`, `max_concurrent` valid values is `1000000`, `3000000`, `10000000`.
15
15
16
+
~> **NOTE:** If set `stock_public_ip_addresses_bandwidth_out`, do not set the `internet_max_bandwidth_out` parameter of resource `tencentcloud_eip` at the same time, otherwise conflicts may occur.
### Or set stock public ip addresses bandwidth out
83
+
84
+
```hcl
85
+
resource "tencentcloud_vpc" "vpc" {
86
+
cidr_block = "10.0.0.0/16"
87
+
name = "tf_nat_gateway_vpc"
88
+
}
89
+
90
+
resource "tencentcloud_eip" "eip_example1" {
91
+
name = "tf_nat_gateway_eip1"
92
+
}
93
+
94
+
resource "tencentcloud_eip" "eip_example2" {
95
+
name = "tf_nat_gateway_eip2"
96
+
}
97
+
98
+
resource "tencentcloud_nat_gateway" "example" {
99
+
name = "tf_example_nat_gateway"
100
+
vpc_id = tencentcloud_vpc.vpc.id
101
+
nat_product_version = 2
102
+
stock_public_ip_addresses_bandwidth_out = 100
103
+
assigned_eip_set = [
104
+
tencentcloud_eip.eip_example1.public_ip,
105
+
tencentcloud_eip.eip_example2.public_ip,
106
+
]
107
+
tags = {
108
+
createBy = "terraform"
109
+
}
110
+
}
111
+
```
112
+
80
113
## Argument Reference
81
114
82
115
The following arguments are supported:
@@ -87,6 +120,7 @@ The following arguments are supported:
87
120
*`bandwidth` - (Optional, Int) The maximum public network output bandwidth of NAT gateway (unit: Mbps). Valid values: `20`, `50`, `100`, `200`, `500`, `1000`, `2000`, `5000`. Default is `100`. When the value of parameter `nat_product_version` is 2, which is the standard NAT type, this parameter does not need to be filled in and defaults to `5000`.
88
121
*`max_concurrent` - (Optional, Int) The upper limit of concurrent connection of NAT gateway. Valid values: `1000000`, `3000000`, `10000000`. Default is `1000000`. When the value of parameter `nat_product_version` is 2, which is the standard NAT type, this parameter does not need to be filled in and defaults to `2000000`.
89
122
*`nat_product_version` - (Optional, Int, ForceNew) 1: traditional NAT, 2: standard NAT, default value is 1.
123
+
*`stock_public_ip_addresses_bandwidth_out` - (Optional, Int, ForceNew) The elastic public IP bandwidth value (unit: Mbps) for binding NAT gateway. When this parameter is not filled in, it defaults to the bandwidth value of the elastic public IP, and for some users, it defaults to the bandwidth limit of the elastic public IP of that user type.
90
124
*`subnet_id` - (Optional, String, ForceNew) Subnet of NAT.
91
125
*`tags` - (Optional, Map) The available tags within this NAT gateway.
92
126
*`zone` - (Optional, String) The availability zone, such as `ap-guangzhou-3`.
0 commit comments