A small test environment for Vault with both the LDAP auth and LDAP secrets engine configured.
- Create these 3 folders
./tmp
,./tmp/tls
and./tmp/ssh
- Generate an ssh key for the ec2 instances with
test -f ./tmp/ssh/id_rsa.pub || ssh-keygen -f ./tmp/ssh/id_rsa
- Generate self-signed tls certificates for the vault cluster. First make the script executable with
chmod 700 ./generate-tls.sh
and then execute it with./generate-tls.sh
- Rename
./default_environemts/terraform.tfvars.template
to./default_environemts/terraform.tfvars
and fill in the variables - Rename
./terraform.tfvars.template
to./terraform.tfvars
and fill in the variables. Make sure they match with step 1. - Deploy all AWS resources in the
./default_environments
folder withterraform init
followed byterraform apply
- Deploy all AWS resources in
./
withterraform init
followed byterraform apply
- Instructions to connect to the Bastion will be output by Terraform once it completes deploying everything in
./