一、描述
腾讯云 NAT 网关,产品介绍
支持的购买方式:后付费
二、示例
resource "tencentcloud_nat_gateway" "demo_nat" { name = "demo_nat" assigned_eip_set = ["139.199.232.119"] vpc_id = var.app_target.vpc.id subnet_id = var.app_target.subnet.id bandwidth = 100 max_concurrent = 1000000 nat_product_version = 1 zone = "ap-guangzhou-1"}
三、参数说明
| 类型 | 名称 | 数据类型 | 说明 |
| 必填 | region | string | 地域,如:ap-guangzhou,默认使用 provider 中定义的 region 也可以在 resource 中指定地域,覆盖默认设置 |
| 必填 | availability_zone | string | 可用区 |
| 必填 | name | string | NAT 网关名称,最长60字符 |
| 必填 | vpc_id | string | NAT 网关所属 VPC |
| 必填 | assigned_eip_set | string[] | 绑定 NAT 网关的弹性 IP 数组 |
| 可选 | count | int | 资源数量,默认为 1 如果为 0 则不创建资源 |
| 可选 | activity_id | int | 计费活动 ID,保留字段 |
| 可选 | subnet_id | string | NAT 网关所属子网 |
| 可选 | bandwidth | int | NAT 网关最大外网出带宽(单位:Mbps),支持的参数值:20, 50, 100, 200, 500, 1000, 2000, 5000,默认:100Mbps |
| 可选 | max_concurrent | int | NAT 网关并发连接上限,支持参数值:1000000、3000000、10000000,默认值为1000000小型:100万中型:300万大型:1000万 |
| 可选 | nat_product_version | enum | NAT网关大版本号,默认1,传统型枚举值:1:传统型2:标准型 |
| 可选 | zone | string | 可用区,形如:ap-guangzhou-1。 |
| 生成 | id | string | 资源实例 ID |
| 生成 | create_time | string | 资源创建时间 |