consul
hashicorp/consul/azurerm
A Terraform Module for how to run Consul on AzureRM using Terraform and Packer
Consul Azure Module This repo contains a Module for deploying a Consul cluster on Azure 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 Each Module has the following folder structure: root: This folder shows an example of Terraform code that uses the consul-cluster module to deploy a Consul cluster in Azure modules: This folder contains the reusable code for this Module, broken down into one or more modules. * examples: This folder contains examples of how to us
| Name | Type | Description | Default |
|---|---|---|---|
| subscription_id | string | The Azure subscription ID | required |
| storage_account_name | string | The name of an Azure Storage Account. This SA should already exist | required |
| secret_access_key | string | The Azure secret access key | required |
| client_id | string | The Azure client ID | required |
| image_uri | string | The URI to the Azure image that should be deployed to the consul cluster. | required |
| key_data | string | The SSH public key that will be added to SSH authorized_users on the consul inst | required |
| allowed_inbound_cidr_blocks | list | A list of CIDR-formatted IP address ranges from which the Azure Instances will a | required |
| tenant_id | string | The Azure tenant ID | required |
| resource_group_name | string | The name of the Azure resource group consul will be deployed into. This RG shoul | required |
| num_servers | string | The number of Consul server nodes to deploy. We strongly recommend using 3 or 5. | 3 |
| location | string | The Azure region the consul cluster will be deployed in | "East US" |
| subnet_address | string | The subnet that consul resources will be deployed into | "10.0.10.0/24" |
| instance_size | string | The instance size for the servers | "Standard_A0" |
| num_clients | string | The number of Consul client nodes to deploy. You typically run the Consul client | 1 |
| cluster_name | string | What to name the Consul cluster and all of its associated resources | "consul-example" |
| cluster_tag_key | string | The tag the Azure Instances will look for to automatically discover each other a | "consul-servers" |
| allowed_ssh_cidr_blocks | list | A list of CIDR-formatted IP address ranges from which the Azure Instances will a | [] |
| address_space | string | The supernet for the resources that will be created | "10.0.0.0/16" |
scale_set_name_serversload_balancer_ip_address_serversload_balancer_ip_address_clientsnum_servers