FlexibleEngineCloud / terraform-provider-flexibleengine

Terraform flexibleengine provider
https://www.terraform.io/docs/providers/flexibleengine/
Mozilla Public License 2.0
30 stars 53 forks source link

[DMS] Error when import inexistant rocketMQ user #907

Closed gaetanars closed 1 year ago

gaetanars commented 1 year ago

Terraform Version

Terraform v1.3.7
on linux_amd64
+ provider registry.terraform.io/flexibleenginecloud/flexibleengine v1.36.0

Affected Resource(s)

Terraform doc say that when you read an inexistant resource, provider must return a blank ID to tell Terraform the resource no longer exists (maybe it was destroyed out of band).

When we try to import an inexistant rocketMq User, we have this error : Error: error retrieving DmsRocketMQUser: Bad request with: [GET https://dms.eu-west-0.prod-cloud-ocb.orange-business.com/v2/6f9b3db803e6449e8dce83e566aac41b/instances/2fbb7ef2-a2a9-41ac-83c3-f9a9a9a9239f/users/usertest], error message: {"error_code":"DMS.00500972","error_msg":"The user does not exist."}

This is because in huaweicloud-provider only http 404 are catched, but DMS API seems to respond with another code.

Can you please correct this issue?

Jason-Zhang9309 commented 1 year ago

This issue should have been resolved as we have updated the reference to huaweicloud. Please update your flexibleengine provider to the latest version.

gaetanars commented 1 year ago

You prior must publish a new release :)