On a Mac:
- Install Terraform
brew update
brew install terraform
brew install doctl
- Configure Docker CLI with your API token
doctl auth init
- View DO SSH Keys
doctl compute ssh-key list
-
Copy the ID, and replace the value for
digitalocean_ssh_key_ids
invariables.tf
. -
Initialize Terraform
terraform init
-
Check the information in
ddosecrets_news.tf
and ensure the names are what you want. -
Test your configuration
terraform plan
- Deploy the infrastructure
terraform apply
-
Update the IP in
inventory.yml
with the IP address of the Droplet you just created using Terraform. -
Install Role for SSH hardening
ansible-galaxy install dev-sec.ssh-hardening
...