Skip to content

Generating a single "cloudflare_zone" resource type returns all zones in Account #941

@Robbie558

Description

@Robbie558

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

v0.24.0

Expected outcome

When I issue the generate or import command e.g. cf-terraforming --terraform-binary-path /usr/bin/terraform generate --zone <zone_id> --resource-type "cloudflare_zone" I receive only the state / configuration of the zone ID specified.

Actual outcome

I receive the state / configuration for all zones linked to the Cloudflare account

Steps to reproduce

  • Install cf-terraforming binary
  • Install terraform binary
  • Setup a bare-bones main.tf file specifying latest v5 of the provider
  • Setup CLOUDFLARE_API_TOKEN environment variable with a token that has access to all zones in my Cloudflare account
  • Issue the command cf-terraforming --terraform-binary-path /usr/bin/terraform generate -z <zone_id> --resource-type "cloudflare_zone

References

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions