/terraform-hcp-consul-cluster

Deploys an HCP Consul Cluster with necessary peering configuration between HCP and AWS.

Primary LanguageHCLMozilla Public License 2.0MPL-2.0

Requirements

No requirements.

Providers

Name Version
aws n/a
hcp n/a

Modules

No modules.

Resources

Name Type
aws_route.hcp_peering_private resource
aws_route.hcp_peering_public resource
aws_route.peering-public resource
aws_security_group.open resource
aws_vpc_peering_connection_accepter.peer resource
hcp_aws_network_peering.default resource
hcp_consul_cluster.server resource
hcp_consul_cluster_root_token.user resource
hcp_hvn.server resource
hcp_hvn_route.peering_route resource

Inputs

Name Description Type Default Required
aws_account_id The AWS Account ID string n/a yes
aws_cidr CIDR Block for AWS string n/a yes
aws_default_route_table_id The default route table ID for the AWS VPC string n/a yes
aws_region The AWS Region string n/a yes
aws_vpc_cidr_block The AWS VPC CIDR Block string n/a yes
aws_vpc_id The AWS VPC ID string n/a yes
cidr_block CIDR block for HVN string n/a yes
cloud_provider Cloud Provider string "aws" no
consul_cluster_datacenter Name of the Consul datacenter string n/a yes
consul_public_endpoint Publicly accessible endpoint for Consul bool true no
consul_version Minimum version number of Consul string "1.11.2-ent" no
hcp_consul_tier Tier of HCP Consul string n/a yes
hcp_hvn_cidr_block The CIDR Block for the HCP HVN string n/a yes
hcp_region Region for HCP string n/a yes
hvn_cidr CIDR Block for HCP string n/a yes
hvn_id Virtual Network in HCP string n/a yes
hvn_link A unique URL identifying the HCP Consul cluster. string n/a yes
hvn_name The name of the HCP HVN string n/a yes
hvn_peering_identifier The name of the HCP Peering Connection string n/a yes
private_route_table_ids Route Table IDs for Private Routes list(string) n/a yes
public_route_table_ids Route Table IDs for Public Routes list(string) n/a yes

Outputs

Name Description
aws_security_group_id The id of the AWS VPC Security group for HCP HVN Peering
consul_ca_file The Consul root CA file
consul_cluster_host Endpoint to access HCP Consul
consul_config_file The Consul config file to setup the working environment
consul_root_token The Consul root token
consul_root_token_accessor_id The ID for the for Consul root token
consul_root_token_secret_id The secret ID for the Consul root token
hcp_vpn_id ID of the HCP VPN
hvn_link URL identifying the HVN