- install Terraform (see project.tf to check required versions)
git clone
this module- set required variables in .tfvars file (see variables.tf file, required variables labeled as required)
- run
terraform init
- run
terraform plan
example
module "hdevs" {
source = "github.com/v-bus/terraform-hcloud-devhost"
aws_access_key = "asdfghjhgf"
aws_secret_key = "sdfghngfds"
dns_dev_zone = "yourname.net."
vps_list = {"ubuntu_18" = 2}
dev_user = "username"
hcloud_token = "sdfghj,hgffghjkjhgf"
tags = {"key" = "value"}
}
output "out" {
value = module.hdevs.dev_hosts
}