cts-alb_listener-nia
aws-quickstart/cts-alb_listener-nia/hashicorp
AWS Quick Start Team
terraform-hashicorp-cts-alb_listener-nia The Consul-Terraform-Sync (CTS) module creates a listener rule and target group for an AWS Application Load Balancer. When the rule condition is met, traffic is forwarded to a Consul ingress gateway. Authors - Rosemary Wang Prerequisites - Consul-Terraform-Sync v0.1.0-beta - HashiCorp Consul v1.9+ - Ingress gateway - Service registration - HashiCorp Terraform v0.14+ Usage The module primarily uses Consul-Terraform-Sync user metadata to build the listener rule conditions to the Consul ingress gateway target group. You can use this module in Consul-Terraform-Sync with a service configuration for the Consul ingress gateway, any of its services for routing, and a task definition. ``hcl service { name = "ingress-gateway" datacenter = "cloud" description
| Name | Type | Description | Default |
|---|---|---|---|
| listener_arn | string | Listener ARN on Application Load Balancer for Consul ingress gateway listener ru | required |
| services | map( object({ id | Consul services monitored by Consul-Terraform-Sync | required |
| vpc_id | string | VPC ID to attach a target group for Consul ingress gateway. | required |
| target_group_health_check | object({ enabled | Health check attributes for target group. CTS sets port based on ingress gateway | required |
| listener_rule_priority | number | Priority of listener rule between 1 to 50000 | 1 |
consul_ingress_target_group_arn — Target Group ARN for Consul ingress gatewayconsul_ingress_listener_rule_arn — Listener rule ARN for Consul ingress gateway