I recently made my first provider and it works as expected. But I have noticed that when I use it in my configuration, during the refresh step of apply/plan, it looks like this:
gotify_client.dashboard: Refreshing state... [name=Dashboard Widget]
module.gotify.kubernetes_service.web_service: Refreshing state... [id=apps/gotify]
gotify_application.diun: Refreshing state... [name=Diun]
module.gotify.kubernetes_deployment.app: Refreshing state... [id=apps/gotify]
module.gotify.kubernetes_ingress_v1.web_ingress: Refreshing state... [id=apps/gotify]
As you can see, all of my resources (gotify_client
and gotify_application
) use the name
field to identify the resource in the output (its just the output, right?) while all other resources (from various providers) show the id
field.
Both my resources also have an id
field which I’m also internally using to keep track of them. I’m wondering what causes this output to look like this. I can’t find anything in the schema.Attribute
to give a hint to Terraform and the order in the code doesn’t seem to influence this.
Here is my Resource Schema (and all the rest of the code) from the example above.