Vault Auto-unseal using AWS KMS
These assets are provided to perform the tasks described in the Vault Auto-unseal with AWS KMS guide.
Demo Steps
Setup
- Set this location as your working directory
- Set your AWS credentials as environment variables:
AWS_ACCESS_KEY_IDandAWS_SECRET_ACCESS_KEY - Set Vault Enterprise URL in a file named
terraform.tfvars(seeterraform.tfvars.example)
Commands Cheat Sheet
# Pull necessary plugins
$ terraform init
$ terraform plan
# Output provides the SSH instruction
$ terraform apply
#----------------------------------
# Clean up...
$ terraform destroy -force
$ rm -rf .terraform terraform.tfstate* private.key