Smana / terraform-aws-tailscale-subnet-router

Create an autoscaling group of Tailscale subnet routers
Apache License 2.0
1 stars 0 forks source link

never registers instances with Tailscale #23

Open gegnew opened 8 months ago

gegnew commented 8 months ago

I set up a reusable, pre-approved Tailscale key, and dropped the relevant variables into the config. The instance spins up on AWS, but I never see the TS key used, and no machine is ever registered with Tailscale.

Smana commented 5 months ago

Hey @gegnew , really sorry for the delay. I just noticed your issue.

That's strange because I use it in a regular basis and it works perfectly. This is where I use it currently: https://github.com/Smana/demo-cloud-native-ref/blob/main/terraform/network/tailscale.tf

And my variables look like:

env    = "dev"
region = "eu-west-3"

private_domain_name = "priv.cloud.ogenki.io"

tailscale = {
  subnet_router_name = "ogenki"
  tailnet            = "smainklh@gmail.com"
  api_key            = "tskey-api-k2VfnHA8gu<REDACTED>"
}

tags = {
  project = "demo-cloud-native-ref"
  owner   = "Smana"
}

Make sure you've created and "API Access Token"