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

Ability to connect to tailnet #240

Open
gabegorelick opened this issue May 28, 2023 · 0 comments
Open

Ability to connect to tailnet #240

gabegorelick opened this issue May 28, 2023 · 0 comments
Labels
enhancement New feature or request

Comments

@gabegorelick
Copy link

Is your feature request related to a problem? Please describe.

It's fairly common for Terraform to need to connect to resources that are not accessible to the machine running terraform. This is documented pretty well for SSH jump hosts in hashicorp/terraform#8367, but the same applies to Tailscale. In other words: there should be a way to use Tailscale to let Terraform connect to resources on your tailnet.

Often times, you can just run tailscale up before you run terraform. But that's not possible in environments like Terraform Cloud.

Describe the solution you'd like
Some kind of resource or module that connects to a tailnet:

# This would effectively run `tailscale up`.
resource tailscale_connection {
  authkey: "emphemeral_key"
}

provider mysql {
  # This now works because we're connected to the tailnet.
  endpoint = "private_address"
}

Additional context
Prior art: https://github.com/jaysonsantos/terraform-provider-jumphost and https://github.com/flaupretre/terraform-ssh-tunnel

@gabegorelick gabegorelick added the enhancement New feature or request label May 28, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant