Skip to content

Commit

Permalink
mark dms_instance as deprecated
Browse files Browse the repository at this point in the history
  • Loading branch information
Jason-Zhang9309 committed May 31, 2021
1 parent d54723f commit 25effa9
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
5 changes: 4 additions & 1 deletion docs/resources/dms_instance.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,12 @@
---
subcategory: "Distributed Message Service (DMS)"
subcategory: "Deprecated"
---

# huaweicloud\_dms\_instance

!> **Warning:** It has been deprecated, use `huaweicloud_dms_kafka_instance` or
`huaweicloud_dms_rabbitmq_instance` instead.

Manages a DMS instance in the huaweicloud DMS Service.
This is an alternative to `huaweicloud_dms_instance_v1`

Expand Down
1 change: 1 addition & 0 deletions huaweicloud/resource_huaweicloud_dms_instance_v1.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ func resourceDmsInstancesV1() *schema.Resource {
Importer: &schema.ResourceImporter{
State: schema.ImportStatePassthrough,
},
DeprecationMessage: "use huaweicloud_dms_kafka_instance or huaweicloud_dms_rabbitmq_instance instead",

Schema: map[string]*schema.Schema{
"region": {
Expand Down
4 changes: 2 additions & 2 deletions huaweicloud/resource_huaweicloud_dms_instance_v1_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ func TestAccDmsInstancesV1_Rabbitmq(t *testing.T) {
resourceName := "huaweicloud_dms_instance.instance_1"

resource.ParallelTest(t, resource.TestCase{
PreCheck: func() { testAccPreCheckDms(t) },
PreCheck: func() { testAccPreCheckDeprecated(t) },
Providers: testAccProviders,
CheckDestroy: testAccCheckDmsV1InstanceDestroy,
Steps: []resource.TestStep{
Expand Down Expand Up @@ -52,7 +52,7 @@ func TestAccDmsInstancesV1_Kafka(t *testing.T) {
resourceName := "huaweicloud_dms_instance.instance_1"

resource.ParallelTest(t, resource.TestCase{
PreCheck: func() { testAccPreCheckDms(t) },
PreCheck: func() { testAccPreCheckDeprecated(t) },
Providers: testAccProviders,
CheckDestroy: testAccCheckDmsV1InstanceDestroy,
Steps: []resource.TestStep{
Expand Down

0 comments on commit 25effa9

Please sign in to comment.