Skip to content

Latest commit

 

History

History
91 lines (68 loc) · 4.47 KB

File metadata and controls

91 lines (68 loc) · 4.47 KB

Terraform module alb_target_group

The module creates Application Load Balancer target group for specific port and protocol, attaches specific instances to it, and adds the target group to the load balancer. The target group is configured to forward requests for specific path patterns.

Requirements

No requirements.

Providers

Name Version
aws n/a

Modules

No modules.

Resources

Name Type
aws_lb_listener_rule.listener_rule resource
aws_lb_target_group.target_group resource
aws_lb_target_group_attachment.target_group_attachment resource
aws_lb_listener.listener data source

Inputs

Name Description Type Default Required
alb_arn Application Load Balancer ARN string n/a yes
alb_port Target group port number 80 no
health_check_path Health check path string "/server/rest/info/healthcheck" no
instance_port Instance port number 80 no
name Target group name string n/a yes
path_patterns Listener rule path patterns list(string)
[
"/portal",
"/portal/",
"/server",
"/server/
"
]
no
protocol Target group protocol string "HTTP" no
target_instances List of target EC2 instance Ids list(string) n/a yes
vpc_id VPC Id string n/a yes

Outputs

Name Description
name Application load balancer target group name

Terraform module alb_target_group

The module creates Application Load Balancer target group for specific port and protocol, attaches specific EC2 instances to it, and adds the target group to the load balancer. The target group is configured to forward requests for specific path patterns.

Providers

Name Version
aws n/a

Resources

Name Type
aws_lb_listener_rule.listener_rule resource
aws_lb_target_group.target_group resource
aws_lb_target_group_attachment.target_group_attachment resource
aws_lb_listener.listener data source

Inputs

Name Description Type Default Required
alb_arn Application Load Balancer ARN string n/a yes
alb_port Target group port number 80 no
health_check_path Health check path string "/server/rest/info/healthcheck" no
instance_port Instance port number 80 no
name Target group name string n/a yes
path_patterns Listener rule path patterns list(string) [ "/portal", "/portal/*", "/server", "/server/*" ] no
priority Target group priority number 100 no
protocol Target group protocol string "HTTP" no
target_instances List of target EC2 instance Ids list(string) n/a yes
vpc_id VPC Id string n/a yes

Outputs

Name Description
arn Target group ARN
name Application load balancer target group name