Browse the Repo

file-type-icon.circleci
file-type-icon_ci
file-type-icon_docs
file-type-iconexamples
file-type-iconmodules
file-type-icontest
file-type-icon.gitignore
file-type-iconCODEOWNERS
file-type-iconCONTRIBUTING.md
file-type-iconLICENSE
file-type-iconNOTICE
file-type-iconREADME.md
file-type-iconmain.tf
file-type-iconoutputs.tf
file-type-iconvariables.tf

Browse the Repo

file-type-icon.circleci
file-type-icon_ci
file-type-icon_docs
file-type-iconexamples
file-type-iconmodules
file-type-icontest
file-type-icon.gitignore
file-type-iconCODEOWNERS
file-type-iconCONTRIBUTING.md
file-type-iconLICENSE
file-type-iconNOTICE
file-type-iconREADME.md
file-type-iconmain.tf
file-type-iconoutputs.tf
file-type-iconvariables.tf
HashiCorp Vault

HashiCorp Vault

Deploy a Vault cluster. Supports automatic bootstrapping, Consul and S3 backends, self-signed TLS certificates, and auto healing.

Code Preview

Preview the Code

mobile file icon

main.tf

down
  • # ---------------------------------------------------------------------------------------------------------------------
  • # DEPLOY A VAULT SERVER CLUSTER, AN ELB, AND A CONSUL SERVER CLUSTER IN AWS
  • # This is an example of how to use the vault-cluster and vault-elb modules to deploy a Vault cluster in AWS with an
  • # Elastic Load Balancer (ELB) in front of it. This cluster uses Consul, running in a separate cluster, as its storage
  • # backend.
  • # ---------------------------------------------------------------------------------------------------------------------
  • # ----------------------------------------------------------------------------------------------------------------------
  • # REQUIRE A SPECIFIC TERRAFORM VERSION OR HIGHER
  • # This module has been updated with 0.12 syntax, which means it is no longer compatible with any versions below 0.12.
  • # ----------------------------------------------------------------------------------------------------------------------
  • terraform {
  • required_version = ">= 0.12"
  • }
  • # ---------------------------------------------------------------------------------------------------------------------
  • # AUTOMATICALLY LOOK UP THE LATEST PRE-BUILT AMI
  • # This repo contains a CircleCI job that automatically builds and publishes the latest AMI by building the Packer
  • # template at /examples/vault-consul-ami upon every new release. The Terraform data source below automatically looks up
  • # the latest AMI so that a simple "terraform apply" will just work without the user needing to manually build an AMI and
  • # fill in the right value.
  • #
  • # !! WARNING !! These example AMIs are meant only convenience when initially testing this repo. Do NOT use these example
  • # AMIs in a production setting as those TLS certificate files are publicly available from the Module repo containing
  • # this code.

Questions? Ask away.

We're here to talk about our services, answer any questions, give advice, or just to chat.

Ready to hand off the Gruntwork?