hcp-consul

hashicorp/hcp-consul/azurerm

Terraform Module HCL AZURERM

Terraform module for HCP Consul on Azure

Install
module "hcp-consul" {
source = "hashicorp/hcp-consul/azurerm"
version = "0.5.0"
}
plain text: /constructs/tfmod-hashicorp-hcp-consul-azurerm/install.txt
⭐ Source on GitHub 📦 Registry page
README

HCP Consul on Azure Module Terraform module for connecting a HashiCorp Cloud Platform (HCP) Consul cluster to Azure. Usage This module connects a HashiCorp Virtual Network (HVN) with an Azure VNet, ensuring that all networking rules are in place to allow a Consul client to communicate with the HCP Consul servers. The module accomplishes this in by: 1. Create and accept a peering connection between the HVN and VNet 2. Create HVN routes that will direct HCP traffic to the CIDR ranges of the subnets. 3. Create Azure ingress rules necessary for HCP Consul to communicate to Consul clients. Examples These examples allow you to easily research and demo HCP Consul. - hcp-vm-demo - Use Azure virtual machines to run Consul clients - hcp-aks-demo - Use an AKS cluster to deploy Consul clients License

Inputs (8)
NameTypeDescriptionDefault
subnet_idslist(string)The subnets associated with the vnet required
vnet_idstringthe id of the vnet required
vnet_rgstringThe name of the vnet's resource group that everything will be created in required
tenant_idstringthis is tenant id required
subscription_idstringthis is the azure subscription id required
hvnobject({ hvn_id = striThe HCP HVN to connect to the VPC as defined in the datasource for hcp_hvn required
security_group_nameslist(string)A list of security group IDs which should allow inbound Consul client traffic. I[]
prefixstringA prefix to be added to all resources to force uniqueness if required"peering"
Outputs (1)
nsg — Newly created azure nsg if 'security_group_names' was not provided
Resources (8)
azuread_service_principalazurerm_network_security_groupazurerm_network_security_ruleazurerm_role_assignmentazurerm_role_definitionazurerm_subnet_network_security_group_associationhcp_azure_peering_connectionhcp_hvn_route
Details
FrameworkTerraform Module
LanguageHCL
Version0.5.0
Cloud AZURERM
★ Stars4
Forks5
Total downloads610.3k
Inputs8
Outputs1
Resources8
Examples2
Submodules3
LicenseMPL-2.0
Namespacehashicorp
Updated