Recently we migrated from terraform to tofu and wanted to verify our integrity, but - despite exporting both CLOUDFLARE_TERRAFORM_BINARY_PATH and CLOUDFLARE_PROVIDER_REGISTRY_HOSTNAME as env variables as the readme instructs - we constantly run into the following error:
FATA[0000] failed to detect provider installation
The tracker only contains one similar issue in regards of this problem (using it with tofu), and that issue actually ended up adding the compatibility (again, many thanks). Out of pure curiosity we switched from env vars to flags and voila, everything worked.
unsure whether this behaviour changed in viper recently however, i've explicitly updated it to fetch from GetString now which will get the right value from the environment variable as well as the flag.
Confirmation
cf-terraforming version
v0.20.0
Expected outcome
CLOUDFLARE_PROVIDER_REGISTRY_HOSTNAME
overrides the default terraform registryActual outcome
CLOUDFLARE_PROVIDER_REGISTRY_HOSTNAME
is ignored, only--provider-registry-hostname
is respectedSteps to reproduce
First of all thank you for providing tofu compatibility, but it seems that the PR https://github.com/cloudflare/cf-terraforming/pull/630 might be not complete.
Recently we migrated from
terraform
totofu
and wanted to verify our integrity, but - despite exporting bothCLOUDFLARE_TERRAFORM_BINARY_PATH
andCLOUDFLARE_PROVIDER_REGISTRY_HOSTNAME
as env variables as the readme instructs - we constantly run into the following error:The tracker only contains one similar issue in regards of this problem (using it with tofu), and that issue actually ended up adding the compatibility (again, many thanks). Out of pure curiosity we switched from env vars to flags and voila, everything worked.
References
No response