https://github.com/lipej/aws-cdk-tailscale-exit-node-deno
Automated Tailscale exit node with AWS CDK and Deno
https://github.com/lipej/aws-cdk-tailscale-exit-node-deno
aws aws-cdk aws-ec2 exit-node infrastructure-as-code tailscale
Last synced: 6 months ago
JSON representation
Automated Tailscale exit node with AWS CDK and Deno
- Host: GitHub
- URL: https://github.com/lipej/aws-cdk-tailscale-exit-node-deno
- Owner: lipej
- Created: 2024-12-15T19:51:38.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-12-15T19:59:29.000Z (over 1 year ago)
- Last Synced: 2025-04-07T04:52:44.142Z (12 months ago)
- Topics: aws, aws-cdk, aws-ec2, exit-node, infrastructure-as-code, tailscale
- Language: TypeScript
- Homepage:
- Size: 3.91 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Tailscale Exit Node with AWS CDK and Deno
This repository automates the creation of a Tailscale exit node in your chosen AWS region using the AWS CDK. You will need:
- Deno
- Tailscale Auth Key
To create a Tailscale exit node, run the following commands:
> This script will create a new Tailscale exit node in sa-east-1 to adjust and change the exit node name, change the stacks array in main.ts file.
```bash
deno task bootstrap --profile profile
TAILSCALE_AUTH_KEY=your_key deno task deploy --profile profile
```
To destroy the Tailscale exit node, run the following command:
```bash
deno task destroy --profile profile
```
> Note: Replace **profile** with your AWS profile configured in the AWS credentials file (.aws/credentials).
Thanks to @scottgerring and your blog post: https://blog.scottgerring.com/posts/automating-tailscale-exit-nodes-on-aws/