Terraform version is a work in progress. Teh basic infrastructure does get created.
- Create SSH keys for VM
- Create TLS keys for remote Docker communication
- Verify connection to remote Docker w/ TLS
- Clone git repo and start with docker compose
1. Install Docker in VM
Maybe:
- Pull backup data to restore state
- Use renew or add letsencrypt
Create secret.tfvars :
azure_subscription_id = "00000000-0000-0000-0000-000000000000"
Edit abs.tfvars for your enviroment.
Create the TLS keys for SSHing into your VM
sh tls-create.sh
terraform init -var-file="secret.tfvars" -var-file="abs.tfvars"
terraform plan -var-file="secret.tfvars" -var-file="abs.tfvars"
terraform apply -var-file="secret.tfvars" -var-file="abs.tfvars"
To manually verify you can connect over SSH
Replace abs3 with your fullName variable Replace absadmin with your adminUsername Replace abs3.westus2.cloudapp.azure.com wit your fqdn or Public IP
eval "$(ssh-agent -s)"
ssh-add ./keys/abs3/id_abs3_rsa
ssh absadmin@abs3.westus2.cloudapp.azure.com
Edit the variables in the first 30 lines of the script.
sh abs_create.sh
Get a cup of coffee... this takes a little while.