From 1729f3038366989d8163a642b8510bdc13bea5c1 Mon Sep 17 00:00:00 2001 From: SevenEarth <391613297@qq.com> Date: Fri, 13 Sep 2024 18:36:12 +0800 Subject: [PATCH 1/4] add --- .../resource_tc_ccn_route_table_associate_instance_config.go | 2 ++ .../r/ccn_route_table_associate_instance_config.html.markdown | 4 ++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/tencentcloud/services/ccn/resource_tc_ccn_route_table_associate_instance_config.go b/tencentcloud/services/ccn/resource_tc_ccn_route_table_associate_instance_config.go index 5ed30b90db..d5020f59fb 100644 --- a/tencentcloud/services/ccn/resource_tc_ccn_route_table_associate_instance_config.go +++ b/tencentcloud/services/ccn/resource_tc_ccn_route_table_associate_instance_config.go @@ -28,11 +28,13 @@ func ResourceTencentCloudCcnRouteTableAssociateInstanceConfig() *schema.Resource "ccn_id": { Type: schema.TypeString, Required: true, + ForceNew: true, Description: "ID of the CCN.", }, "route_table_id": { Type: schema.TypeString, Required: true, + ForceNew: true, Description: "Ccn instance route table ID.", }, "instances": { diff --git a/website/docs/r/ccn_route_table_associate_instance_config.html.markdown b/website/docs/r/ccn_route_table_associate_instance_config.html.markdown index eac700c090..489922e81d 100644 --- a/website/docs/r/ccn_route_table_associate_instance_config.html.markdown +++ b/website/docs/r/ccn_route_table_associate_instance_config.html.markdown @@ -80,9 +80,9 @@ resource "tencentcloud_ccn_route_table_associate_instance_config" "example" { The following arguments are supported: -* `ccn_id` - (Required, String) ID of the CCN. +* `ccn_id` - (Required, String, ForceNew) ID of the CCN. * `instances` - (Required, Set) Instances list. -* `route_table_id` - (Required, String) Ccn instance route table ID. +* `route_table_id` - (Required, String, ForceNew) Ccn instance route table ID. The `instances` object supports the following: From 8f60a670c34913046b5253f429e46579e915f186 Mon Sep 17 00:00:00 2001 From: SevenEarth <391613297@qq.com> Date: Fri, 13 Sep 2024 18:38:12 +0800 Subject: [PATCH 2/4] add --- .changelog/2829.txt | 3 +++ 1 file changed, 3 insertions(+) create mode 100644 .changelog/2829.txt diff --git a/.changelog/2829.txt b/.changelog/2829.txt new file mode 100644 index 0000000000..5e61e0f9cd --- /dev/null +++ b/.changelog/2829.txt @@ -0,0 +1,3 @@ +```release-note:enhancement +resource/tencentcloud_ccn_route_table_associate_instance_config: Update document +``` From 7df7be269731e1d54a6c48d4dd35ece7bff881ed Mon Sep 17 00:00:00 2001 From: SevenEarth <391613297@qq.com> Date: Fri, 13 Sep 2024 19:40:25 +0800 Subject: [PATCH 3/4] add --- .../ccn/resource_tc_ccn_route_table_associate_instance_config.md | 1 + .../r/ccn_route_table_associate_instance_config.html.markdown | 1 + 2 files changed, 2 insertions(+) diff --git a/tencentcloud/services/ccn/resource_tc_ccn_route_table_associate_instance_config.md b/tencentcloud/services/ccn/resource_tc_ccn_route_table_associate_instance_config.md index 11ecda63fe..8783842b1b 100644 --- a/tencentcloud/services/ccn/resource_tc_ccn_route_table_associate_instance_config.md +++ b/tencentcloud/services/ccn/resource_tc_ccn_route_table_associate_instance_config.md @@ -56,6 +56,7 @@ resource "tencentcloud_ccn_attachment" "attachment" { # route table associate instance resource "tencentcloud_ccn_route_table_associate_instance_config" "example" { + depends_on = [tencentcloud_ccn_attachment.attachment] ccn_id = tencentcloud_ccn.example.id route_table_id = tencentcloud_ccn_route_table.example.id instances { diff --git a/website/docs/r/ccn_route_table_associate_instance_config.html.markdown b/website/docs/r/ccn_route_table_associate_instance_config.html.markdown index 489922e81d..7df5e9f4f9 100644 --- a/website/docs/r/ccn_route_table_associate_instance_config.html.markdown +++ b/website/docs/r/ccn_route_table_associate_instance_config.html.markdown @@ -67,6 +67,7 @@ resource "tencentcloud_ccn_attachment" "attachment" { # route table associate instance resource "tencentcloud_ccn_route_table_associate_instance_config" "example" { + depends_on = [tencentcloud_ccn_attachment.attachment] ccn_id = tencentcloud_ccn.example.id route_table_id = tencentcloud_ccn_route_table.example.id instances { From 7ddeeebdc5c1f4d6d6d0fd4b90e1f3fb546830aa Mon Sep 17 00:00:00 2001 From: SevenEarth <391613297@qq.com> Date: Fri, 13 Sep 2024 19:41:10 +0800 Subject: [PATCH 4/4] add --- .../resource_tc_ccn_route_table_associate_instance_config.md | 3 ++- .../r/ccn_route_table_associate_instance_config.html.markdown | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/tencentcloud/services/ccn/resource_tc_ccn_route_table_associate_instance_config.md b/tencentcloud/services/ccn/resource_tc_ccn_route_table_associate_instance_config.md index 8783842b1b..e97514af17 100644 --- a/tencentcloud/services/ccn/resource_tc_ccn_route_table_associate_instance_config.md +++ b/tencentcloud/services/ccn/resource_tc_ccn_route_table_associate_instance_config.md @@ -56,13 +56,14 @@ resource "tencentcloud_ccn_attachment" "attachment" { # route table associate instance resource "tencentcloud_ccn_route_table_associate_instance_config" "example" { - depends_on = [tencentcloud_ccn_attachment.attachment] ccn_id = tencentcloud_ccn.example.id route_table_id = tencentcloud_ccn_route_table.example.id instances { instance_id = tencentcloud_vpc.vpc.id instance_type = "VPC" } + + depends_on = [tencentcloud_ccn_attachment.attachment] } ``` diff --git a/website/docs/r/ccn_route_table_associate_instance_config.html.markdown b/website/docs/r/ccn_route_table_associate_instance_config.html.markdown index 7df5e9f4f9..06ac20c515 100644 --- a/website/docs/r/ccn_route_table_associate_instance_config.html.markdown +++ b/website/docs/r/ccn_route_table_associate_instance_config.html.markdown @@ -67,13 +67,14 @@ resource "tencentcloud_ccn_attachment" "attachment" { # route table associate instance resource "tencentcloud_ccn_route_table_associate_instance_config" "example" { - depends_on = [tencentcloud_ccn_attachment.attachment] ccn_id = tencentcloud_ccn.example.id route_table_id = tencentcloud_ccn_route_table.example.id instances { instance_id = tencentcloud_vpc.vpc.id instance_type = "VPC" } + + depends_on = [tencentcloud_ccn_attachment.attachment] } ```