Skip to content

TechHoldingLLC/terraform-aws-alb

Repository files navigation

Requirements

Name Version
terraform >= 1.0
aws >= 4.5

Providers

Name Version
aws >= 4.5

Modules

No modules.

Resources

Name Type
aws_lb.alb resource
aws_lb_listener.listener resource
aws_lb_listener_certificate.listener_certificate resource
aws_lb_target_group.target_group resource

Inputs

Name Description Type Default Required
access_logs An Access Logs block
list(object({
bucket = string
prefix = string
enabled = bool
}))
[] no
alb_arn ALB arn string "" no
attach_certificate Indicate whether a new certificate needs to be attached bool false no
certificate_arn The ARN of the certificate to attach to the listener string "" no
create_alb Create ALB bool false no
create_alb_listener Create ALB Listener bool false no
enable_deletion_protection If true, deletion of the load balancer will be disabled via the AWS API. bool true no
idle_timeout The time in seconds that the connection is allowed to be idle number 60 no
internal If true, the LB will be internal bool false no
listener_arn The ARN of the listener to which to attach the rule string "" no
listeners Map of listener configurations to create any {} no
name The name of the LB string "" no
security_groups The list of security groups for ALB. list(any) [] no
subnets A list of subnet IDs to attach to the LB list(string) [] no
tags A map of tags to add to all resources map(string) {} no
target_groups Map of target group configurations to create any {} no
vpc_id The VPC ID string "" no

Outputs

Name Description
arn # All the below listed outputs returns value only when var.create_alb is true, otherwise they return an empty string ("")
arn_suffix n/a
dns n/a
listeners n/a
target_groups n/a
zone_id # All the below listed outputs returns value only when var.create_alb_listener is true, otherwise they return an empty string ("")

License

Apache 2 Licensed. See LICENSE for full details.