on-internet
← Community

Terraform Error: Provider produced inconsistent final plan - value "known after apply" causes empty list on plan

Stack Overflow ·

The following contrived example causes "Error: Provider produced inconsistent final plan" because of the locals.project_id used in the list of rrdatas on the google_dns_record_set.cdn_dns_txt_record_firebase resource. The project_id value is known only after apply and I do not know how to manage this for the rrdatas list. When I come to apply the plan, the value changes and causes the error mentioned. Your help would be really appreciated. terraform { required_providers { google = { source = "hashicorp/google" version = ">= 4.24.0" } random = { version = ">= 3.3.2" } } } locals { project_id =

Comments

Sign in or sign up to comment and upvote.

No comments yet.