Tailscale v0.17.4 published on Thursday, Oct 24, 2024 by Pulumi
Tailscale Provider: Installation & Configuration
The Pulumi Tailscale provider uses the Tailscale SDK to manage resources.
Installation
The Tailscale provider is available as a package in all Pulumi languages:
- JavaScript/TypeScript:
@pulumi/tailscale
- Python:
pulumi-tailscale
- Go:
github.com/pulumi/pulumi-tailscale/sdk/go/tailscale
- .NET:
Pulumi.Tailscale
- Java:
com.pulumi/tailscale
Configuring The Provider
Pulumi relies on the Tailscale SDK to authenticate requests from your computer to Tailscale. Your credentials are never sent to pulumi.com. Once the credentials are obtained, there are two ways to communicate your configuration parameters to Pulumi:
Set the environment variable
TAILSCALE_API_KEY
andTAILSCALE_TAILNET
:$ export TAILSCALE_API_KEY=XXXXXX $ export TAILSCALE_TAILNET=YYYYYY
With Oauth Client (conflicts with
TAILSCALE_API_KEY
):$ export OAUTH_CLIENT_SECRET=XXXXXX $ export OAUTH_CLIENT_ID=XXXXXX
If you prefer that they be stored alongside your Pulumi stack for easy multi-user access:
$ pulumi config set tailscale:apiKey XXXXXX --secret $ pulumi config set tailscale:tailnet YYYYYY
With Oauth Client (conflicts with
TAILSCALE_API_KEY
):$ pulumi config set tailscale:oauthClientSecret XXXXXX --secret $ pulumi config set tailscale:oauthClientId XXXXXX --secret
The complete list of configuration parameters is in the Tailscale provider README.