-
Notifications
You must be signed in to change notification settings - Fork 232
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Allow providers to return post-apply & post-configure warnings #230
Comments
Probably easiest to accomplish this via protocol 5 diagnostics. |
Example use case: hashicorp/terraform-provider-aws#10417 (comment) The RDS service allows you delay modifications to databases until the weekly maintenance window by omitting an "apply immediately" flag when updating. Some environments prefer waiting until the maintenance window to stage operations that cause downtime to an acceptable downtime window. It can be surprising the first time Terraform successfully applies a configuration that results in a (temporary) perpetual update difference when this is not set. We note this with a warning in the affected resource documentation however for those unfamiliar with this behavior, it would be nice to have a post-apply warning about this behavior, e.g.
|
going to merge this to #74 , supporting diagnostics will enable warnings, info, and error messages, and allow providers to specify relevant source location information if applicable. |
I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further. |
Providers today are able to return warnings to the user only via validation functions, which run at plan time.
There are however cases when providers would benefit from having the capability to warn users after the apply operation has finished or after configuration of the provider is done.
Example use cases
Related, but likely parallel to hashicorp/terraform#17267
The text was updated successfully, but these errors were encountered: