- Create a Digital Ocean account
- Create an API token at https://cloud.digitalocean.com/account/api/tokens
- Download terraform from https://www.terraform.io/downloads.html
- Git clone this repo
- Copy
terraform.tfvars.example
toterraform.tfvars
and edit to match your needs. - Deploy:
$ export DIGITALOCEAN_TOKEN=xxxx
$ terraform init # only needs to be done once
$ terraform apply
- Wait for deployment to complete...
...
Apply complete! Resources: 0 added, 0 changed, 0 destroyed.
Outputs:
fqdns = [
lab-0.do.dns-school.org,
lab-1.do.dns-school.org
]
ip_addresses = [
159.65.200.194,
167.99.223.12
]