Open iwahbe opened 1 month ago
Voting for Prioritization
Volunteering to Work on This Issue
this looks to be coming from the underlying Go library suggesting that RuleID
is not being correctly - https://github.com/cloudflare/cloudflare-go/blob/f5d3137ca61667ba17be32b54feef5a4e53a023c/email_routing_rules.go#L187
in the provider we use tag
as the ID (legacy reasons that we can migrate away from now) however, in the debug log, i see it does not have a value.
2024-06-25T18:07:13.415-0700 [DEBUG] provider.terraform-provider-cloudflare_v4.35.0: marking computed attribute that is null in the config as unknown: tf_mux_provider="*proto6server.Server" tf_attribute_path="AttributeName(\"tag\")"
can you confirm if that is set in your state? or if you only have id
.
This is my state file: https://gist.github.com/iwahbe/16c423d8fcd87c0e10d6af6d320da631. It looks like both tag
and id
are set.
odd - nothing obvious is jumping out at me so i'll need to have a dig into what is happening here.
Confirmation
Terraform and Cloudflare provider version
Terraform v1.8.3 on darwin_arm64
provider registry.terraform.io/cloudflare/cloudflare v4.35.0
Affected resource(s)
Terraform configuration files
Link to debug output
https://gist.github.com/iwahbe/6c572def584838b5fb3cc9e66d936b4b
Panic output
No response
Expected output
I expect that I can change the value of
cloudflare_email_routing_rule.action.value.0
and the provider will update or replace my forwarding rule.Actual output
Steps to reproduce
terraform apply
on the original program, typing "yes" when prompted, creating the resource.cloudflare_email_routing_rule.CfEmailRedirects.action.value.0
from"repro-2@pulumi.com"
to"repro-3@pulumi.com"
.terraform apply
and type"yes"
, the resource will fail to update.Additional factoids
I don't see anything in the documentation for this resource indicating where I should pass a rule ID.
References
No response