PrefectHQ / terraform-provider-prefect

Terraform Provider for Prefect Cloud
https://registry.terraform.io/providers/PrefectHQ/prefect/latest/docs
Apache License 2.0
29 stars 13 forks source link

Use helper functions for consistent Diagnostics #212

Closed mitchnielsen closed 2 weeks ago

mitchnielsen commented 2 weeks ago

Summary

https://developer.hashicorp.com/terraform/plugin/framework/diagnostics#consistent-diagnostic-creation

Let's use existing helper functions to ensure consistent Diagnostic entries in the provider. We can also write new helper functions where needed for more consistency and less repetition.

Note that some diagnostic entries may not need to be replaced with helper functions, specifically those that are single-use and not repeated.

Acceptance criteria