Skip to content

Commit 3fda001

Browse files
authored
fix(ccn): [119693049] Optimized code (#2829)
* add * add * add * add
1 parent 0d60c1a commit 3fda001

4 files changed

+11
-2
lines changed

.changelog/2829.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
```release-note:enhancement
2+
resource/tencentcloud_ccn_route_table_associate_instance_config: Update document
3+
```

tencentcloud/services/ccn/resource_tc_ccn_route_table_associate_instance_config.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,11 +28,13 @@ func ResourceTencentCloudCcnRouteTableAssociateInstanceConfig() *schema.Resource
2828
"ccn_id": {
2929
Type: schema.TypeString,
3030
Required: true,
31+
ForceNew: true,
3132
Description: "ID of the CCN.",
3233
},
3334
"route_table_id": {
3435
Type: schema.TypeString,
3536
Required: true,
37+
ForceNew: true,
3638
Description: "Ccn instance route table ID.",
3739
},
3840
"instances": {

tencentcloud/services/ccn/resource_tc_ccn_route_table_associate_instance_config.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,8 @@ resource "tencentcloud_ccn_route_table_associate_instance_config" "example" {
6262
instance_id = tencentcloud_vpc.vpc.id
6363
instance_type = "VPC"
6464
}
65+
66+
depends_on = [tencentcloud_ccn_attachment.attachment]
6567
}
6668
```
6769

website/docs/r/ccn_route_table_associate_instance_config.html.markdown

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -73,16 +73,18 @@ resource "tencentcloud_ccn_route_table_associate_instance_config" "example" {
7373
instance_id = tencentcloud_vpc.vpc.id
7474
instance_type = "VPC"
7575
}
76+
77+
depends_on = [tencentcloud_ccn_attachment.attachment]
7678
}
7779
```
7880

7981
## Argument Reference
8082

8183
The following arguments are supported:
8284

83-
* `ccn_id` - (Required, String) ID of the CCN.
85+
* `ccn_id` - (Required, String, ForceNew) ID of the CCN.
8486
* `instances` - (Required, Set) Instances list.
85-
* `route_table_id` - (Required, String) Ccn instance route table ID.
87+
* `route_table_id` - (Required, String, ForceNew) Ccn instance route table ID.
8688

8789
The `instances` object supports the following:
8890

0 commit comments

Comments
 (0)