## What this teaches

How to attributes aren't refreshed if no attributes of that type exist in local state.

## The problem

Issue fastly/terraform-provider-fastly#629 (closed, 7 comments): ### Terraform Version Terraform v1.3.3 on darwin_arm64 ### Affected Resource(s) - fastly_service_vcl ### Terraform Configuration Files ```terraform resource "fastly_service_vcl" "cache-setting-test" { name = "cache-setting-test" domain { name = "cache-setting-test.example.com" } cache_setting { action = "pass" cache_condition = "Do not cache non-render responses or non-200" name = "redirect cache setting" stale_ttl = 0 ttl = 0 } condition { name = "Do not cache non-render responses or non-200" priority = 100 statement = "beresp.status != 200 || req.url !~ \"^/render\"" type = "CACHE" } } ```...

## What worked (verified answer)

If terraform-provider-fastly doesn't refresh attributes on fastly_service_vcl (stale state after changes), this was fixed by provider PR #630, merged upstream. Fix: upgrade the Fastly Terraform provider past that change. Related but separate: if you also see missing state values when an API call errors mid-apply, that was split into its own issue (#631).

## Source

gh:fastly/terraform-provider-fastly#629 - https://github.com/fastly/terraform-provider-fastly/issues/629
