reference deployment

HashiCorp Consul on AWS

Service discovery, health checking, key/value store, and more on the AWS Cloud

This Quick Start sets up a flexible, scalable AWS Cloud environment, and launches HashiCorp Consul automatically into a configuration of your choice.

Consul is a tool for discovering and configuring services in your infrastructure. Its features include service discovery, health checking, key/value store, and multiple datacenter support right out of the box.

The Quick Start includes AWS CloudFormation templates that automate the deployment, and a guide that provides step-by-step instructions to help you get the most out of your HashiCorp Consul implementation on the AWS Cloud.


This Quick Start was developed by HashiCorp, Inc. in partnership with AWS. HashiCorp is an
APN Partner.

  •  What you'll build
  •  How to deploy
  •  Cost and licenses
  •  What you'll build
  • Use this Quick Start to set up the following HashiCorp Consul environment on AWS:

    • A virtual private cloud (VPC) configured with public and private subnets across three Availability Zones. This provides the network infrastructure for your HashiCorp Consul deployment.*
    • An internet gateway to provide access to the internet.*
    • In the public subnets, Linux bastion hosts to allow inbound Secure Shell (SSH) access to EC2 instances in the private subnets.*
    • In the public subnets, managed network address translation (NAT) gateways to allow outbound Internet access for resources in the private subnets.*
    • In the private subnets, an Auto Scaling group for a Consul server cluster. You can choose to create 3, 5, or 7 servers.
    • In the private subnets, an Auto Scaling group for Consul clients. The number of clients is set to 3 by default, but is user-configurable.
    • Consul Template (the consul-template daemon) installed on all nodes for integrating applications with Consul’s service catalog and key/value store.
    • Dnsmasq installed on all nodes for integrating applications with Consul’s DNS interface for service discovery.

    * The template that deploys the Quick Start into an existing VPC skips the tasks marked by asterisks and prompts you for your existing VPC configuration.

  •  How to deploy
  • To build your HashiCorp Consul cluster on AWS, follow the instructions in the deployment guide. The deployment process includes these steps:

    1. If you don't already have an AWS account, sign up at
    2. Launch the Quick Start. Each deployment takes about 10 minutes. You can choose from two options:
    3. Access the Consul environment through the bastion hosts and SSH connections.
    4. Access the Consul web UI.
    5. Get started with Consul services.

    To customize your deployment, you can choose different instance types for your resources, and change the number of Consul client and server nodes.

  •  Cost and licenses
  • You are responsible for the cost of the AWS services used while running this Quick Start reference deployment. There is no additional cost for using the Quick Start.

    The AWS CloudFormation template for this Quick Start includes configuration parameters that you can customize. Some of these settings, such as instance type, will affect the cost of deployment. See the pricing pages for each AWS service you will be using for cost estimates.

    This Quick Start uses the open-source version of HashiCorp Consul, which doesn’t require a license.