Infrastructure as code using HashiCorp stack.
This is only a temporary instruction.
Create an ssh key pair, for example, called terraform_rsa
. This will be used to access the VMs.
ssh-keygen -t rsa -b 4096
You will need to install Docker and setup ssh keys for the VMs.
You can use the script inside the scripts
folder to do that. It will install docker and create an User named terraform
. You will need to provide the ssh key you created before.
./scripts/config-vm.sh <path-to-ssh-key>
You will need to have Terraform installed. You can download it here.
Take a look at the variables.tf
and see what variables you need to set. You can create a terraform.tfvars
file and set the variables there.
After that, you can run the following commands to create the infrastructure.
terraform init
terraform apply