risingwavelabs / terraform-provider-risingwavecloud

Apache License 2.0
0 stars 0 forks source link

feat: delete failed resource before creation #41

Closed mikechesterwang closed 3 months ago

mikechesterwang commented 3 months ago

context: https://github.com/risingwavelabs/terraform-provider-risingwavecloud/pull/37#discussion_r1544341958

If the creation failed, then the plugin will not update the state, so it can trigger create in the next attempt. The next apply will try to create a resource again, and before that, it will first delete the failed resource.