cf-terraforming icon indicating copy to clipboard operation
cf-terraforming copied to clipboard

Error: Unsupported block type (when validating with "terraform validate" after generating --resource_type cloudflare_access_groups)

Open etec-masterofsynapse opened this issue 3 years ago • 0 comments

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.8

Expected outcome

Get a valid .tf file with cf-terraforming generate -a <ACCOUNT_ID> --resource-type cloudflare_access_group > cloudflare_access_group.tf

Actual outcome

cf-terraforming generate -a <ACCOUNT_ID> --resource-type cloudflare_access_group > cloudflare_access_group.tf executed successfully, but 'terraform validatehits the present error because the Cloudflare Terraform provider seemingly doesn't understand therequire { geo { } }` statement, even though it is documented as acceptable here: https://registry.terraform.io/providers/cloudflare/cloudflare/latest/docs/resources/access_group#geo

Steps to reproduce

  1. cf-terraforming generate -a <ACCOUNT_ID> --resource-type cloudflare_access_group > cloudflare_access_group.tf
  2. terraform validate

References

No response

etec-masterofsynapse avatar Oct 28 '22 16:10 etec-masterofsynapse