This repo contains Terraform code for standing up a HashiCorp Vault training lab on Microsoft Azure. You can use it for a half-day Terraform workshop, a half-day Vault workshop or combined day-long workshop covering both. To set up and run either or both workshops, simply follow the instructions below.
- Clone or download the code from here: https://github.com/scarolan/azure-terraform-vault-workshop
- Open a terminal and cd into the azure-terraform-vault-workshop directory
- Copy the settings in
terraform.tfvars.example
into aterraform.tfvars
file. Set the prefix variable to your name. This is the only required setting. You can also change the location variable to the Azure region nearest you. - Uncomment the code in main.tf (or simply copy over it with main.tf.codeonly)
- Run
terraform plan
and thenterraform apply
- Go get some coffee. It takes roughly 8-10 minutes to provision this environment on Azure.
- When the setup is done, follow the steps listed in the Terraform output.
If you're teaching this workshop to a class, head on over to the Instructor Notes page.