tencentcloud_tcr_vpc_attachment

最近更新时间:2026-01-08 15:03:22

我的收藏

描述

腾讯云容器镜像服务 TCR VPC 内网接入

示例

resource "tencentcloud_tcr_vpc_attachment" "tcr_vpc" {
instance_id = "tcr-xxxxxx"
vpc_id = "vpc-xxxxxxxx"
subnet_id = "subnet-xxxxxxxx"
}

参数说明

类型
名称
数据类型
说明
必填
region
string
地域,如:ap-guangzhou,默认使用 provider 中定义的 region 也可以在 resource 中指定地域,覆盖默认设置
instance_id
string
实例 ID
vpc_id
string
VPC ID
subnet_id
string
子网 ID
可选
availability_zone
string
可用区
count
int
资源数量,默认为 1 如果为 0 则不创建资源
activity_id
int
计费活动 ID,保留字段
enable_public_domain_dns
boolean
是否启用默认(公网)域名 DNS
enable_vpc_domain_dns
boolean
是否启用 VPC 域名 DNS
生成
id
string
资源实例 ID
create_time
string
资源创建时间
status
string
内网接入状态
access_ip
string
内网接入 IP