consul

hashicorp/consul/azurerm

Terraform Module HCL AZURERM

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

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

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

Inputs (18)
NameTypeDescriptionDefault
subscription_idstringThe Azure subscription ID required
storage_account_namestringThe name of an Azure Storage Account. This SA should already exist required
secret_access_keystringThe Azure secret access key required
client_idstringThe Azure client ID required
image_uristringThe URI to the Azure image that should be deployed to the consul cluster. required
key_datastringThe SSH public key that will be added to SSH authorized_users on the consul inst required
allowed_inbound_cidr_blockslistA list of CIDR-formatted IP address ranges from which the Azure Instances will a required
tenant_idstringThe Azure tenant ID required
resource_group_namestringThe name of the Azure resource group consul will be deployed into. This RG shoul required
num_serversstringThe number of Consul server nodes to deploy. We strongly recommend using 3 or 5.3
locationstringThe Azure region the consul cluster will be deployed in"East US"
subnet_addressstringThe subnet that consul resources will be deployed into"10.0.10.0/24"
instance_sizestringThe instance size for the servers"Standard_A0"
num_clientsstringThe number of Consul client nodes to deploy. You typically run the Consul client1
cluster_namestringWhat to name the Consul cluster and all of its associated resources"consul-example"
cluster_tag_keystringThe tag the Azure Instances will look for to automatically discover each other a"consul-servers"
allowed_ssh_cidr_blockslistA list of CIDR-formatted IP address ranges from which the Azure Instances will a[]
address_spacestringThe supernet for the resources that will be created"10.0.0.0/16"
Outputs (4)
scale_set_name_servers
load_balancer_ip_address_servers
load_balancer_ip_address_clients
num_servers
Resources (2)
azurerm_subnetazurerm_virtual_network
Details
FrameworkTerraform Module
LanguageHCL
Version0.0.5
Cloud AZURERM
★ Stars49
Forks73
Total downloads7.5k
Inputs18
Outputs4
Resources2
Submodules2
LicenseApache-2.0
Namespacehashicorp
Updated