alb-listener-rule

bryan-rhm/alb-listener-rule/aws

Terraform Module HCL AWS ⏱ stale 3y 0mo

Terraform aws ALB Listener rule module

Install

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

README

Terraform AWS Load Balancer Listener Rule module Basic usage example Forward listener rule `` module "alb-listener-rule" { source = "github.com/bryan-rhm/terraform-aws-alb-listener-rule?ref=v1.0.0" listener_arn = "arn:aws:elasticloadbalancing:us-east-1:1234:listener/app/test" priority = 100 path_pattern = ["/"] target_groups = [{ arn = "arn:aws:elasticloadbalancing:us-east-1:1234:targetgroup/test1" }] query_strings = [{ value = "user" }] } ` Weighted listener rule ` module "alb-listener-rule" { source = "github.com/bryan-rhm/terraform-aws-alb-listener-rule?ref=v1.0.0" listener_arn = "arn:aws:elasticloadbalancing:us-east-1:1234:listener/app/test" priority = 100 path_pattern = ["/"] target_groups = [{ arn = "arn:aws:elasticloadbalancing:us-east-1:1234:targetgroup/test1" weight = 80 }, { arn

Inputs (10)

NameTypeDescriptionDefault
target_groupslist(object({ arn = strThe ARN and weight of the target groups to attach to the rule. required
listener_arnstringThe ARN of the listener to which to attach the rule. required
host_headerlist(string)List of host header patterns to match. The maximum size of each pattern is 128 c[]
query_stringslist(object({ key = optiKey/value of query strings pattern to match[]
http_request_methodlist(string)List of HTTP request methods or verbs to match. Maximum size is 40 characters.[]
source_iplist(string)List of source IP CIDR notations to match. You can use both IPv4 and IPv6 addres[]
http_headerslist(object({ name = strHTTP Header Blocks, name/values required[]
oidc_configobject({ authorization_endOpen ID Connect Configurationnull
prioritynumberThe priority for the rule between 1 and 50000. Leaving it unset will automaticalnull
path_patternlist(string)List of path patterns to match against the request URL. Maximum size of each pat[]

Outputs (1)

output — Listener rule attributes

Resources (1)

aws_lb_listener_rule

Details

FrameworkTerraform Module
LanguageHCL
Version2.0.0
Cloud AWS
★ Stars1
Forks0
Total downloads4.6k
Inputs10
Outputs1
Resources1
LicenseApache-2.0
Namespacebryan-rhm
Updated