hcp-consul

hashicorp/hcp-consul/aws

Terraform Module HCL AWS

Terraform module for HCP Consul on AWS

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

HCP Consul on AWS Module Terraform module for connecting a HashiCorp Cloud Platform (HCP) Consul cluster to AWS. Usage This module connects a HashiCorp Virtual Network (HVN) with an AWS VPC, 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 four steps: 1. Create and accept a peering connection between the HVN and VPC 2. Create HVN routes that will direct HCP traffic to the CIDR ranges of the subnets. 3. Create AWS routes for each AWS route table that will direct traffic to the HVN's own CIDR range. 4. Create AWS ingress rules necessary for HCP Consul to communicate to Consul clients. ``hcl module "aws_hcp_consul" { source = "hashicorp/hcp-consul/aws" hvn = hcp_hvn.main vpc_id = "vpc-0daa4a091

Inputs (5)
NameTypeDescriptionDefault
route_table_idslist(string)A list of route table IDs which should route to the the HVN's CIDR required
hvnobject({ hvn_id = striThe HCP HVN to connect to the VPC required
vpc_idstringThe ID of your AWS VPC required
subnet_idslist(string)A list of subnet IDs which should route to/from the the HVN's CIDR required
security_group_idslist(string)A list of security group IDs which should allow inbound Consul client traffic. I[]
Outputs (1)
security_group_id — Newly created AWS security group that allow Consul client communication, if 'security_group_ids' was
Resources (6)
aws_routeaws_security_groupaws_security_group_ruleaws_vpc_peering_connection_accepterhcp_aws_network_peeringhcp_hvn_route
Topics & Tags
terraformconsulhcp
Details
FrameworkTerraform Module
LanguageHCL
Version0.13.0
Cloud AWS
★ Stars12
Forks15
Total downloads792.2k
Inputs5
Outputs1
Resources6
Examples4
Submodules5
LicenseMPL-2.0
Namespacehashicorp
Updated