alb

cloudposse/alb/aws

Terraform Module HCL AWS

Terraform module to provision a standard ALB for HTTP/HTTP traffic

Install
module "alb" {
source = "cloudposse/alb/aws"
version = "2.4.0"
}
⭐ Source on GitHub 📦 Registry page
README

Terraform module to create an ALB, default ALB listener(s), and a default ALB target and related security groups. > [!TIP] > #### 👽 Use Atmos with Terraform > Cloud Posse uses atmos to easily orchestrate multiple environments using Terraform. > Works with Github Actions, Atlantis, or Spacelift. > > > Watch demo of using Atmos with Terraform > > Example of running atmos to manage infrastructure from our Quick Start tutorial. > Usage For a complete example, see examples/complete. For automated test of the complete example using bats and Terratest, see test. ```hcl provider "aws" { region = var.region } module "vpc" { source = "cloudposse/vpc/aws" # Cloud Posse recommends pinning every module to a specific version # version = "x.x.x" namespace = var.namespace stage = var.stage name = var.name

Inputs (50)
NameTypeDescriptionDefault
vpc_idstringVPC ID to associate with ALB required
load_balancing_anomaly_mitigationstringDetermines whether to enable target anomaly mitigation. Only supported by the we"off"
tenantstringID element _(Rarely used, not included by default)_. A customer identifier, indinull
http2_enabledboolA boolean flag to enable/disable HTTP/2true
target_group_target_typestringThe type (`instance`, `ip` or `lambda`) of targets that can be registered with t"ip"
client_keep_alivenumberClient keep alive value in seconds. The valid range is 60-604800 seconds. The de3600
reserved_capacity_unitsnumberThe number of capacity units reserved for the load balancernull
additional_tag_mapmap(string)Additional key-value pairs to add to each map in `tags_as_list_of_maps`. Not add{}
label_value_casestringControls the letter case of ID elements (labels) as included in `id`, set as tagnull
http_ingress_security_group_idslist(string)List of security group IDs to allow access to HTTP ingress security group[]
health_check_pathstringThe destination for the health check request"/"
target_group_name_max_lengthnumberThe max length of characters for the target group.32
id_length_limitnumberLimit `id` to this many characters (minimum 6). Set to `0` for unlimited length.null
noncurrent_version_expiration_daysnumber(Deprecated, use `lifecycle_configuration_rules` instead) Specifies when non-cur90
access_logs_prefixstringThe S3 log bucket prefix""
namespacestringID element. Usually an abbreviation of your organization name, e.g. 'eg' or 'cp'null
internalboolA boolean flag to determine whether the ALB should be internalfalse
https_ingress_prefix_list_idslist(string)List of prefix list IDs for allowing access to HTTPS ingress security group[]
allow_ssl_requests_onlyboolSet to true to require requests to use Secure Socket Layer (HTTPS/SSL) on the acfalse
health_check_timeoutnumberThe amount of time to wait in seconds before failing a health check request10
idle_timeoutnumberThe time in seconds that the connection is allowed to be idle60
… and 10 more inputs
Outputs (13)
security_group_id — The security group ID of the ALB
default_target_group_arn — The default target group ARN
http_listener_arn — The ARN of the HTTP forwarding listener
default_target_group_arn_suffix — The default target group ARN suffix
http_redirect_listener_arn — The ARN of the HTTP to HTTPS redirect listener
https_listener_arn — The ARN of the HTTPS listener
listener_arns — A list of all the listener ARNs
access_logs_bucket_id — The S3 bucket ID for access logs
alb_name — The ARN suffix of the ALB
alb_arn — The ARN of the ALB
alb_arn_suffix — The ARN suffix of the ALB
alb_dns_name — DNS name of ALB
alb_zone_id — The ID of the zone which ALB is provisioned
Resources (6)
aws_lbaws_lb_listeneraws_lb_listener_certificateaws_lb_target_groupaws_security_groupaws_security_group_rule
Details
FrameworkTerraform Module
LanguageHCL
Version2.4.0
Cloud AWS
★ Stars115
Forks121
Total downloads2.8M
Inputs50
Outputs13
Resources6
Examples1
LicenseApache-2.0
Namespacecloudposse
Updated