The instructions included with this Blueprint arent the clearest or easiest to understand. This Quickstart will fix that.
This quick start assumes the following:
- Terraform (TF) 0.12.x is used
- Terraform is installed and being run locally (no TF Cloud (TFC), TF Enterprise (TFE) or other automation)
- Packer is installed and being run locally
- Shared State is not used
- You have access to an Azure Subscription
- Configure an Azure AD (AAD) Service Principle (SP) for your local TF to connect to AAD. Hashicorp Docs
git clonethe repo to your local machine- Create a
terraform.tfvarsfile or copy the example one (terraform.tfvars.example) that is included and fill in the values you will use.
- Create the Resource Group
- Create the Storage Account. Note that the Storage Account must be created as
Performance: Standard. The blob type used by Vault is not available when the SA isPerformance: Premium.
Assuming you're in the root of the repo you cloned.
- TODO
- Modify the
./examples/vault-consul-image/vault-consul.jsonto suit your needs cd ./examples/vault-consul-imagepacker build ./vault-consul.json
Packer will build the Azure image used by the Vault ScaleSet.
The URI of the image will be output at completion. Copy this URI to the image_uri variable in your terraform.tfvars file.
With the images ready for use you can now deploy the Cluster.
- Run
terraform init - Run
terraform plan - If the plan looks good, run
terraform apply - Run the vault-examples-helper.sh script to print out the IP addresses of the Vault servers and some example commands you can run to interact with the cluster:
../vault-examples-helper/vault-examples-helper.sh.
Name: Andrew Best Email: abest@diaxion.com GitHub: ausfestivus