Open mohitatsafe opened 10 months ago
+1 how can we overcome this behavior?
Also seeing this. You can't use anything dynamic in ignore_changes
, so something like this is impossible:
lifecycle {
ignore_changes = [jsondecode(api_response).status]
}
I don't understand why this provider outputs api_data
as a string formatted with Go syntax instead of giving us a decoded object
The state of the "restapi_object" resource changes when there is any change to the read-only attributes like
api_data
andapi_response
outside of Terraform, and it shows up interraform plan/apply
output.For example:
I tried to ignore these changes using the
lifecycle
block'signore_changes
argument as follows, which I think has no effect (see warning below):After adding the above changes, I see the following warning in Terraform plan/apply output:
Versions
Terraform v1.4.6 Mastercard/restapi v1.18.0