# Custom provider : How to taint a resource from the provider side?

**URL:** <https://discuss.hashicorp.com/t/custom-provider-how-to-taint-a-resource-from-the-provider-side/26324>\
**Category:** Terraform\
**Created:** [July 2, 2021, 8:51pm UTC](https://discuss.hashicorp.com/t/custom-provider-how-to-taint-a-resource-from-the-provider-side/26324 "2021-07-02T20:51:16Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![ramuklawjju](https://avatars.discourse-cdn.com/v4/letter/r/ecd19e/32.png) [@ramuklawjju](https://discuss.hashicorp.com/u/ramuklawjju)\
**Post date:** [July 2, 2021, 8:51pm UTC](https://discuss.hashicorp.com/t/custom-provider-how-to-taint-a-resource-from-the-provider-side/26324/1 "2021-07-02T20:51:16Z")

</div>

I have a resource, which creates some servers. Sometimes servers fail to start depending on the availability, so we are thinking to send an error but server is already created.

So the next solution we have thought is to make the resource tainted, so that the user knows that there is something wrong with the resource and they would do the needful from their side depending on their requirement.

Please suggest an ideal way to achieve this ?
