consul

hashicorp/consul/aws

Terraform Module HCL AWS

A Terraform Module for how to run Consul on AWS using Terraform and Packer

Install
module "consul" {
source = "hashicorp/consul/aws"
version = "0.11.0"
}
⭐ Source on GitHub 📦 Registry page
README

![Maintained by Gruntwork.io](https://gruntwork.io/?ref=repo_aws_consul) Consul AWS Module This repo contains a set of modules in the modules folder for deploying a Consul cluster on AWS using Terraform. Consul is a distributed, highly-available tool that you can use for service discovery and key/value storage. A Consul cluster typically includes a small number of server nodes, which are responsible for being part of the consensus quorum, and a larger number of client nodes, which you typically run alongside your apps: !Consul architecture How to use this Module This repo has the following folder structure: modules: This folder contains several standalone, reusable, production-grade modules that you can use to deploy Consul. examples: This folder shows examples of different ways to combine

Inputs (9)
NameTypeDescriptionDefault
ssh_key_namestringThe name of an EC2 Key Pair that can be used to SSH to the EC2 Instances in this required
vpc_idstringThe ID of the VPC in which the nodes will be deployed. Uses default VPC if not required
spot_pricenumberThe maximum hourly price to pay for EC2 Spot Instances. required
ami_idstringThe ID of the AMI to run in the cluster. This should be an AMI built from the Pa required
num_serversnumberThe number of Consul server nodes to deploy. We strongly recommend using 3 or 5.3
num_clientsnumberThe number of Consul client nodes to deploy. You typically run the Consul client6
cluster_tag_keystringThe tag the EC2 Instances will look for to automatically discover each other and"consul-servers"
enable_https_portboolIf set to true, allow access to the Consul HTTPS port defined via the https_api_false
cluster_namestringWhat to name the Consul cluster and all of its associated resources"consul-example"
Outputs (15)
security_group_id_clients
aws_region
num_servers
asg_name_servers
launch_config_name_servers
iam_role_id_servers
num_clients
asg_name_clients
launch_config_name_clients
iam_role_arn_servers
security_group_id_servers
iam_role_id_clients
iam_role_arn_clients
consul_servers_cluster_tag_key
consul_servers_cluster_tag_value
Details
FrameworkTerraform Module
LanguageHCL
Version0.11.0
Cloud AWS
★ Stars401
Forks483
Total downloads199.4k
Inputs9
Outputs15
Examples2
Submodules4
LicenseApache-2.0
Namespacehashicorp
Updated