This project uses Terraform to provision Virtual Machines (VMs) on any Cloud Provider. The VMs are created using SSH keys stored in a local file.
- OpenTofu / Terraform installed
- Cloud Provider API Token
- SSH keys
-
Clone this repository.
-
Create a
.env
file in the root directory of the project and simply add your Cloud Provider API token:<Your Cloud Provider API Token>
-
Add your SSH keys to a file named
ssh_keys.txt
in the root directory of the project. Each SSH key should be on a new line.
Tip
To initialize the tools, run the following command(s):
OpenTofu:
tofu init
Terraform:
terraform init
To provision the VMs, run the following command(s):
OpenTofu:
tofu apply
Terraform:
terraform apply
This will read the SSH keys from the ssh_keys.txt
file and create a VM for each key in the blr1
region on DigitalOcean.
Tip
You can find regions for Digital Ocean here: here
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.