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

fix: set default empty list for `prefect_variable.tags` #115

Closed parkedwards closed 8 months ago

parkedwards commented 8 months ago

resolves https://github.com/PrefectHQ/terraform-provider-prefect/issues/110

with this configuration:

resource "prefect_variable" "example" {
  name  = "my_variable"
  value = "variable value goes here"
  workspace_id = data.prefect_workspace.evergreen.id
}

this is the plan that is generated (and applies successfully)

image

adding new tags, modifying tags, and resetting the resource to be tag-less all apply correctly