How to Create Tunnels for Different Accounts with `cloudflared`?

I'm trying to use cloudflared to create tunnels for different accounts. I already have the first created for account "A". It's working fine. Now, I want to create another tunnel for account "B". - cloudflared tunnel create smn-dev - cloudflared tunnel list All is good. Now, I try to add the DNS: - cloudflared tunnel route dns [TUNNEL_ID] smn-dev When I do this, it adds the dns entry to the domain associated with my first tunnel on account "A" instead of account "B". I can't find anyway of associating a tunnel to anything but the first account. Perhaps it's because I just started this off all wrong. Is there a step by step guide to doing something like this? The docs really just seem to assume all your tunnels will be on the same zone and account.
4 Replies
Chaika
Chaika7mo ago
It uses the zone/name you logged in under, no way to change override it without logging out and then back in afaik. You can just manually make the CNAME though, just a simple proxied cname to <tunnel-id>.cfargotunnel.com, like 307ff18c-75f4-4bb8-88d4-a41a274198d4.cfargotunnel.com
JustinNoel
JustinNoelOP7mo ago
Thanks! The dx for this is not great. Not very well documented either.
Chaika
Chaika7mo ago
Yea, the recommended way these days is via the Zero trust dashboard/not cli I'm sure the amount of people using multiple accounts for tunnels is also super low as well lol
JustinNoel
JustinNoelOP7mo ago
true
Want results from more Discord servers?
Add your server