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

cloudflare-record "content" field missing from the import #755

Open
2 tasks done
var-log-skynet opened this issue Nov 5, 2024 · 1 comment
Open
2 tasks done

cloudflare-record "content" field missing from the import #755

var-log-skynet opened this issue Nov 5, 2024 · 1 comment

Comments

@var-log-skynet
Copy link

var-log-skynet commented Nov 5, 2024

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.21.0-dev+1bedf8c1500f

Expected outcome

After running cf-terraforming generate and cf-terraforming import, then terraform import, terraform plan should report 0 to change resources.

Extra information:

  • versions:
    Regarding cf-terrafroming version, I've tried the latest release and the one from the current (04.11.2024) master.
Terraform v1.9.8
on linux_amd64
+ provider registry.terraform.io/cloudflare/cloudflare v4.45.
  • minor other issue that has probably nothing to do with this, that in case of CAA records, the generated resources contain a content and a data field, wild the "same" values (different format), and one has to remove one of them in order to make the import start.

Actual outcome

Running terraform plan reports all imported cloudflare-record resources as "will be updated in-place". Example output:

cloudflare_record.terraform_managed_resource_redactedhash will be updated in-place
  ~ resource "cloudflare_record" "terraform_managed_resource_redactedhash" {
      + allow_overwrite = false
      + content         = "redacted.com"
        id              = "redactedhash"
        name            = "redacted_record_name"
        tags            = []
        # (10 unchanged attributes hidden)
    }

Steps to reproduce

  1. run cf-terraforming generate with cloudflare-record
  2. run cf-terraforming import
  3. import the resources with the generated commands
  4. run terraform plan

References

No response

@rajkumaar23
Copy link

same issue here

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

2 participants