Singleton resource

I have a API which has GET,PUT,DELETE operations for a singleton resource The delete in this case is a ‘reset’ of the configuration.

Is it possible to define a resource as being a singleton for a given instance of a provider? To the extent that if you define two of the same resource for a given instance of a provider it would error or at least warn?

It is, unfortunately, not possible, given Terraform’s protocol. In the past, we have documented these kinds of situations as the best we can do.