The API rewrites the value you sent
CommonThe cloud API stores the value in a canonical form: a different case, a sorted list, reformatted JSON, a default filled in. The provider passes that back unchanged, and it no longer equals the planned value.
Confirm
terraform apply 2>&1 | grep -A3 'unexpected new value'
was X, but now Y where X and Y differ only in case, order, whitespace or formatting
Fix
- Write the value in the configuration the way the API returns it, the "but now" value: the same case, the same order, or JSON built with jsonencode() rather than a hand-formatted string.
- Upgrade the provider: normalisation bugs are fixed resource by resource. Check its CHANGELOG for the resource type.
- If neither helps, report it to the provider with the attribute and both values from the error; the message is right that the provider should plan the value the API returns.