Remove DO token variable. Update readme and provisioner

This commit is contained in:
Mike Conrad
2024-09-24 21:47:59 -04:00
parent 43f6820f4a
commit cceeda2164
5 changed files with 22 additions and 9 deletions

View File

@ -1,3 +1,20 @@
# wireguard-terraform-digitalocean
Example of creating a wireguard VPN on DO using Terraform.
Example of creating a wireguard VPN on DO using Terraform.
## Setup
First create an `ssh key` to use with this example:
```shell
ssh-keygen -t rsa -C "WireguardVPN" -f ./tf-digitalocean -q -N ""
```
Next export your DigitalOcean Access token:
```shell
export DIGITALOCEAN_ACCESS_TOKEN=dop_v1_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
```
Finally run the Terraform
```shell
terraform init
terraform apply -auto-approve
```