cloudflare / cf-terraforming

A command line utility to facilitate terraforming your existing Cloudflare resources.
Mozilla Public License 2.0
999 stars 139 forks source link

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

Open var-log-skynet opened 3 weeks ago

var-log-skynet commented 3 weeks ago

Confirmation

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:

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 commented 2 weeks ago

same issue here