alb

bryan-rhm/alb/aws

Terraform Module HCL AWS ⏱ stale 3y 9mo

Terraform module to provision application load balancers/network load balancers

Install

module "alb" {
source = "bryan-rhm/alb/aws"
version = "1.0.0"
}
⭐ Source on GitHub 📦 Registry page

README

Terraform Load Balancer module Basic usage example `` module "alb" { source = "github.com/bryan-rhm/terraform-aws-alb?ref=v1.0.0" name = "my-lb" ssl_policy = var.alb_ssl_policy subnet_ids = var.public_subnet_ids security_groups = ["sg-12345"] ssl_certificate_arn = var.acm_certificate_arn } ` Requirements | Name | Version | |------|---------| | terraform | >= 0.13.4 | | aws | >= 3.43.0 | Providers | Name | Version | |------|---------| | aws | >= 3.43.0 | Modules No modules. Resources | Name | Type | |------|------| | aws_lb.alb | resource | | aws_lb_listener.http_listener | resource | | aws_lb_listener.https_listener | resource | Inputs | Name | Description | Type | Default | Required | |------|-------------|------|---------|:--------:| | access\_logs\_bucket\_name | The S3 bucket name to s

Inputs (14)

NameTypeDescriptionDefault
access_logs_bucket_namestringThe S3 bucket name to store the logs in. required
access_logs_prefixstringThe S3 bucket prefix. Logs are stored in the root if not configured. required
ssl_certificate_arnstringARN of the default SSL server certificate. required
namestringName of the load balancer required
subnet_idslist(string)List of ids for all the subnets that will be attached to the ALB. At least two s required
enable_deletion_protectionboolIf true, deletion of the load balancer will be disabled via the AWS API. This wifalse
security_groupslist(string)List of ids for all the security groups that will be assigned to the ALB.[]
tagsmap(any)A map of tags to assign to the ALB. If configured with a provider default_tags c{}
ssl_policystringName of the SSL Policy for the HTTPS listener."ELBSecurityPolicy-2016-08"
drop_invalid_header_fieldsboolIndicates whether HTTP headers with header fields that are not valid are removedtrue
internal_albboolDefines if the ALB will be internal or external. If internal, it can only use ipfalse
loadbalancer_typestringDefines the type of loadbalancer"application"
enable_cross_zone_load_balancingboolIf true, cross-zone load balancing of the load balancer will be enabled. This isfalse
idle_timeoutnumberSets the time in seconds that the connection is allowed to be idle for the ALB.60

Outputs (1)

output — alb, http and https listeners attributes

Resources (2)

aws_lbaws_lb_listener

Details

FrameworkTerraform Module
LanguageHCL
Version1.0.0
Cloud AWS
★ Stars2
Forks0
Total downloads4.5k
Inputs14
Outputs1
Resources2
LicenseApache-2.0
Namespacebryan-rhm
Updated