Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Missing tunnel_token data in cloudflare_zero_trust_tunnel_cloudflared #5009

Open
3 tasks done
mmalyska opened this issue Jan 31, 2025 · 0 comments
Open
3 tasks done
Labels
kind/bug Categorizes issue or PR as related to a bug. needs-triage Indicates an issue or PR lacks a `triage/foo` label and requires one.

Comments

@mmalyska
Copy link

Confirmation

  • This is a bug with an existing resource and is not a feature request or enhancement. Feature requests should be submitted with Cloudflare Support or your account team.
  • I have searched the issue tracker and my issue isn't already found.
  • I have replicated my issue using the latest version of the provider and it is still present.

Terraform and Cloudflare provider version

Terraform v1.5.7
on linux_amd64

  • provider registry.terraform.io/cloudflare/cloudflare v5.0.0
  • provider registry.terraform.io/dopplerhq/doppler v1.13.0
  • provider registry.terraform.io/hashicorp/http v3.4.5

Your version of Terraform is out of date! The latest version
is 1.10.5. You can update by downloading from https://www.terraform.io/downloads.html

Affected resource(s)

  • cloudflare_zero_trust_tunnel_cloudflared

Terraform configuration files

resource "cloudflare_zero_trust_tunnel_cloudflared" "tunnel" {
  account_id = cloudflare_account.main.id
  name       = "some_name"
  tunnel_secret = local.cloudflare_tunnel_secret
  config_src = "cloudflare"
}

resource "doppler_secret" "cloudflare_tunnel" {
  ...
  value = cloudflare_zero_trust_tunnel_cloudflared.tunnel.tunnel_token
}

Link to debug output

https://gist.github.com/mmalyska/325aafde714296b3d8a482e329a86319

Panic output

No response

Expected output

For the tunnel_token to be available to be used in different module.

Actual output

Error: Unsupported attribute

│ on tunel.tf line 13, in resource "doppler_secret" "cloudflare_tunnel":
│ 13: value = cloudflare_zero_trust_tunnel_cloudflared.jaskinia.tunnel_token

│ This object has no argument, nested block, or exported attribute named
│ "tunnel_token".

Steps to reproduce

  1. Use new CF 5
  2. Create tunnel
  3. Try to get tunnel token

Additional factoids

No response

References

The file https://github.com/mmalyska/home-ops/blob/renovate/cloudflare-5.x/provision/terraform/cloudflare/tunel.tf
The failing PR mmalyska/home-ops#2297

@mmalyska mmalyska added kind/bug Categorizes issue or PR as related to a bug. needs-triage Indicates an issue or PR lacks a `triage/foo` label and requires one. labels Jan 31, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/bug Categorizes issue or PR as related to a bug. needs-triage Indicates an issue or PR lacks a `triage/foo` label and requires one.
Projects
None yet
Development

No branches or pull requests

1 participant