cf-terraforming
cf-terraforming copied to clipboard
Configuration is Invalid Error with valid configuration
Confirmation
- [X] My issue isn't already found on the issue tracker.
- [X] I have replicated my issue using the latest version of the library and it is still present.
cf-terraforming version
cf-terraforming v0.8.4
Expected outcome
I am trying to run an import with
cf-terraforming generate --resource-type cloudflare_zone -v -a "<ACCOUNT_ID>"
I would expect this to succeed. However, that does not happen. The CLOUDFLARE_API_TOKEN env var is set to the correct value and I can use it to access the cloudflare API using curl or insomnia easily.
The terraform configuration is valid as reported by terraform validate and I can plan and apply it without issue as well.
Actual outcome
cf-terraforming generate --resource-type cloudflare_zone -v -a "<ACCOUNT_ID>"
DEBU[0000] initializing cloudflare-go with API Token account_Id=<ACCOUNT_ID> zone_id=
DEBU[0000] configuring Cloudflare API with account account_id=<ACCOUNT_ID>
DEBU[0035] initializing Terraform in .
FATA[0036] configuration is invalid
Steps to reproduce
- Set the
CLOUDFLARE_API_TOKENvariable - run
cf-terraforming generate --resource-type cloudflare_zone -v -a "<ACCOUNT_ID>" - Error
References
No response