Open jaloren opened 1 year ago
the underlying resource does not support update, so you would need to remove the resource and recreate it (remove the resource, run TF apply, re-add it and run TF apply once more)
@nkvuong which is a bug in the terraform provider. The terraform resource should be designed such that an update means a replace. This is a common behavior for a lot of infra which providers need to account for. The alternative is painful terraform state surgery and manual changes to the infra.
@nkvuong can we mark attributes with "ForceNew = true" as needed?
@mgyucht we can add it, but the current API behaviour of network & workspace object requires a special workaround already. Allowing this resource to be destroyed and recreated would still run into the same issue
Configuration
Expected Behavior
the network and workspace should have been replaced. In other words, the resource needs to be deleted and then created a new. this is because the actual infra resource doesn't allow updates.
Actual Behavior
Steps to Reproduce
Using terraform resources
Terraform and provider versions