Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

proxied attribute of cloudflare_record resource different between code and state #513

Open
2 tasks done
krzysztofpawlikiewicz opened this issue Jan 22, 2023 · 0 comments
Open
2 tasks done

Comments

@krzysztofpawlikiewicz
Copy link

Confirmation

  • My issue isn't already found on the issue tracker.
  • I have replicated my issue using the latest version of the library and it is still present.

cf-terraforming version

cf-terraforming v0.9.0

Expected outcome

proxied attribute appropriately set according to the actual state:

resource "cloudflare_record" "terraform_managed_resource_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx" {
  name    = "cdn.xxxxxxxxxx"
  proxied = true
  ttl     = 1
  type    = "A"
  value   = "xxx.xxx.xxx.xxx"
  zone_id = "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"
}

Actual outcome

resource "cloudflare_record" "terraform_managed_resource_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx" {
  name    = "cdn.xxxxxxxxxx"
  proxied = false
  ttl     = 1
  type    = "A"
  value   = "xxx.xxx.xxx.xxx"
  zone_id = "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"
}

Steps to reproduce

  1. cf-terraforming generate --zone xxx --resource-type "cloudflare_record" > cloudflare_records.tf
  2. cf-terraforming import --zone xxx --resource-type "cloudflare_record"
  3. terraform import cloudflare_record.terraform_managed_resource_xxx xxx/xxx - the command created by the import
  4. Run terraform plan to confirm a consistent state between the code and the state. The result I got:
  # cloudflare_record.terraform_managed_resource_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx will be updated in-place
  ~ resource "cloudflare_record" "terraform_managed_resource_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx" {
      + allow_overwrite = false
        id              = "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"
        name            = "cdn.xxxxxxxxxx"
      ~ proxied         = true -> false
        # (9 unchanged attributes hidden)

        # (1 unchanged block hidden)

References

No response

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant