cockroachdb / terraform-provider-cockroach

Terraform provider for CockroachDB Cloud
Apache License 2.0
56 stars 10 forks source link

issue updating name and flag fields for cockroach_allow_list resource #86

Closed yecs1999 closed 1 year ago

yecs1999 commented 1 year ago

There is currently an issue with updating the name, ui and sql flags. When updating an existing state, the apply will appear to succeed but the state is not actually updated, and you will be able to run plan / apply again and see the same state. The result is these fields never get updated in state and therefore the infrastructure can't change.

Below lines where state is used instead of the plan for the SQL, UI and Name fields: https://github.com/cockroachdb/terraform-provider-cockroach/blob/56eb6be6764bac350b5ac802abcf69f74c6285ce/internal/provider/networking_resource.go#L262-L270