This repo contains Terraform code for standing up a HashiCorp Vault training lab on Amazon Web Services. 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/hashicorp/workshops
- Open a terminal and cd into the workshops/aws 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 AWS region nearest you. - Uncomment the code in main.tf (or simply copy over it with main.tf.completed)
- Uncomment the code in outputs.tf (or copy from outputs.tf.completed)
- Run
terraform plan
and thenterraform apply
- Go get some coffee. It takes roughly 4-5 minutes to provision this environment on AWS.
- 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.