Terraform module for HCP Consul on AWS
MPL-2.0 License
Terraform module for connecting a HashiCorp Cloud Platform (HCP) Consul cluster to AWS.
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:
module "aws_hcp_consul" {
source = "hashicorp/hcp-consul/aws"
hvn = hcp_hvn.main
vpc_id = "vpc-0daa4a0915f1857db"
subnet_ids = ["subnet-098e9eb4bdd582522", "subnet-198e9eb4bdd582522"]
route_table_ids = ["rtb-079170034b7a99118", "rtb-179170034b7a99118"]
# Optionally provide security_group_ids. A new security group will be created
# if none are provided.
security_group_ids = ["sg-0ba8d296a786e93c7"]
}
A number of examples are provided which will run the following setup:
These examples allow you to easily research and demo HCP Consul.
To support these examples, a few submodules are provided as useful utilities, for learning and experimentation purposes.
This code is released under the Mozilla Public License 2.0. Please see LICENSE for more details.