[Feature]: Properly show warnings to the user through Diagnostics #692
Labels
enhancement
pinned
requires: plugin-framework
The issue can be fixed after the resource has be migrated to the plugin framework.
What whould you like to see?
Right now when we want to warn the user of some upcoming changes and/or breaking changes we emit a warning log message. This is not surfaced to the user by default, they need to explicitly enable logs (
TF_LOG=WARN
) to see these messages.The proper way to handle this is to send back a list of
Diagnostics
that each can be a warning or an error. These are properly rendered and shown by Terraform.The text was updated successfully, but these errors were encountered: