Skip to content

Conversation

@MoathAbuMahmoud
Copy link

Summary

Fixes incorrect ID field mapping for cloudflare_zero_trust_tunnel_cloudflared_config resource during import and generation.

Problem

The Cloudflare API returns tunnel_id in the response, but the import/generate logic expects a generic id field. When id is null, the code incorrectly falls back to using accountID instead of the actual tunnel identifier.

Before this fix:

  • API response contains: tunnel_id: "285f508d-..."
  • Code checks: if data["id"] == nil → true
  • Code uses: accountID

Solution

Added property remapping in custom_processing.go to copy tunnel_idid

Fixes #927

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Invalid import command generated for tunnel config

1 participant