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

Standardize on use of "plan" and "state" variables #195

Closed mitchnielsen closed 3 weeks ago

mitchnielsen commented 4 weeks ago

Summary

Context: https://github.com/PrefectHQ/terraform-provider-prefect/pull/193#discussion_r1626391852

Let's standardize on the use of plan and state for variable names when interacting with Terraform. For example:


func (r *BlockResource) Read(ctx context.Context, req resource.ReadRequest, resp *resource.ReadResponse) {
    var state BlockResourceModel
        // ...

This is how the Terraform provider tutorial names them, and (imo) is more intuitive to work with.

Acceptance criteria