alb-listener-rule
bryan-rhm/alb-listener-rule/aws
Terraform aws ALB Listener rule module
Install
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)
| Name | Type | Description | Default |
|---|---|---|---|
| target_groups | list(object({ arn = str | The ARN and weight of the target groups to attach to the rule. | required |
| listener_arn | string | The ARN of the listener to which to attach the rule. | required |
| host_header | list(string) | List of host header patterns to match. The maximum size of each pattern is 128 c | [] |
| query_strings | list(object({ key = opti | Key/value of query strings pattern to match | [] |
| http_request_method | list(string) | List of HTTP request methods or verbs to match. Maximum size is 40 characters. | [] |
| source_ip | list(string) | List of source IP CIDR notations to match. You can use both IPv4 and IPv6 addres | [] |
| http_headers | list(object({ name = str | HTTP Header Blocks, name/values required | [] |
| oidc_config | object({ authorization_end | Open ID Connect Configuration | null |
| priority | number | The priority for the rule between 1 and 50000. Leaving it unset will automatical | null |
| path_pattern | list(string) | List of path patterns to match against the request URL. Maximum size of each pat | [] |
Outputs (1)
output — Listener rule attributesResources (1)
Topics & Tags
Details
Similar packages
Azure landing zones Terraform module
Terraform supermodule for the Terraform platform engineering for Azure
Terraform module to deploy landing zone subscriptions (and much more) in Azure
Terraform Module to define a consistent naming convention by (namespace, stage,