Skip to content

Commit

Permalink
Feat/support dts inner layer resource (#1490)
Browse files Browse the repository at this point in the history
* update dts mode

* feat:support dts migrate job resource

* support migrate check and migrate job

* 1.adjust tencentcloud_dts_migrate_job. 2.add tencentcloud_dts_migrate_job_start_operation

* modify migrate job

* migrate job e2e fix

* migrate job passed e2e case

* update changelog
1. update changelog.
2. adjust code by golangci-lint.

* fix read return default values issue

* fix golangci-lint issue

* update changlog

* change config_id to job_id
  • Loading branch information
lyu571 authored Jan 10, 2023
1 parent fd52780 commit 6d78b5e
Show file tree
Hide file tree
Showing 14 changed files with 2,322 additions and 627 deletions.
11 changes: 11 additions & 0 deletions .changelog/1490.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
```release-note:new-resource
tencentcloud_dts_migrate_service
```

```release-note:new-resource
tencentcloud_dts_migrate_job
```

```release-note:new-resource
tencentcloud_dts_migrate_job_start_operation
```
2 changes: 2 additions & 0 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -540,6 +540,8 @@ github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/common v1.0.567 h1:0IRm
github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/common v1.0.567/go.mod h1:7sCQWVkxcsR38nffDW057DRGk8mUjK1Ing/EFOK8s8Y=
github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/common v1.0.569 h1:ucwAQxGji/1kHSsnFf/w/BJ35rU7lFaUAq+uUKzwufE=
github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/common v1.0.569/go.mod h1:7sCQWVkxcsR38nffDW057DRGk8mUjK1Ing/EFOK8s8Y=
github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/common v1.0.567 h1:0IRm7OM1jdBdd1jU3PFf3FOmXcGBwGjICr/pcILEZ3M=
github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/common v1.0.567/go.mod h1:7sCQWVkxcsR38nffDW057DRGk8mUjK1Ing/EFOK8s8Y=
github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/common v1.0.572 h1:xbcb/bC/cSWpfLB3TW+GBUdIcY/x+T+VrBgsz/jxv5Q=
github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/common v1.0.572/go.mod h1:7sCQWVkxcsR38nffDW057DRGk8mUjK1Ing/EFOK8s8Y=
github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/common v1.0.571 h1:V4JQJTavl2X8aRBRBBh4vTOInuzrbqQzHlFitmu782U=
Expand Down
6 changes: 5 additions & 1 deletion tencentcloud/provider.go
Original file line number Diff line number Diff line change
Expand Up @@ -860,8 +860,10 @@ Data Transmission Service(DTS)
Resource
tencentcloud_dts_sync_job
tencentcloud_dts_migrate_job
tencentcloud_dts_compare_task
tencentcloud_dts_migrate_service
tencentcloud_dts_migrate_job
tencentcloud_dts_migrate_job_start_operation
TDMQ for RocketMQ(trocket)
Data Source
Expand Down Expand Up @@ -1583,7 +1585,9 @@ func Provider() terraform.ResourceProvider {
"tencentcloud_tdmq_rocketmq_topic": resourceTencentCloudTdmqRocketmqTopic(),
"tencentcloud_tdmq_rocketmq_group": resourceTencentCloudTdmqRocketmqGroup(),
"tencentcloud_tdmq_rocketmq_environment_role": resourceTencentCloudTdmqRocketmqEnvironmentRole(),
"tencentcloud_dts_migrate_service": resourceTencentCloudDtsMigrateService(),
"tencentcloud_dts_migrate_job": resourceTencentCloudDtsMigrateJob(),
"tencentcloud_dts_migrate_job_start_operation": resourceTencentCloudDtsMigrateJobStartOperation(),
"tencentcloud_dts_compare_task": resourceTencentCloudDtsCompareTask(),
"tencentcloud_cvm_hpc_cluster": resourceTencentCloudCvmHpcCluster(),
"tencentcloud_vpc_flow_log": resourceTencentCloudVpcFlowLog(),
Expand Down
1 change: 0 additions & 1 deletion tencentcloud/resource_tc_dts_compare_task.go
Original file line number Diff line number Diff line change
Expand Up @@ -499,7 +499,6 @@ func resourceTencentCloudDtsCompareTaskUpdate(d *schema.ResourceData, meta inter

request.Objects = &compareObject
}

}

err := resource.Retry(writeRetryTimeout, func() *resource.RetryError {
Expand Down
Loading

0 comments on commit 6d78b5e

Please sign in to comment.