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 +``` 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/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..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 @@ -62,6 +62,8 @@ resource "tencentcloud_ccn_route_table_associate_instance_config" "example" { 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 eac700c090..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 @@ -73,6 +73,8 @@ resource "tencentcloud_ccn_route_table_associate_instance_config" "example" { instance_id = tencentcloud_vpc.vpc.id instance_type = "VPC" } + + depends_on = [tencentcloud_ccn_attachment.attachment] } ``` @@ -80,9 +82,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: