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"
}]
}
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 = "arn:aws:elasticloadbalancing:us-east-1:1234:targetgroup/test2"
weight = 20
}]
}
Name | Version |
---|---|
terraform | >= 1.3.0 |
aws | >= 3.57.0 |
Name | Version |
---|---|
aws | 3.71.0 |
No modules.
Name | Type |
---|---|
aws_lb_listener_rule.this | resource |
Name | Description | Type | Default | Required |
---|---|---|---|---|
host_header | List of host header patterns to match. The maximum size of each pattern is 128 characters. Comparison is case insensitive. Wildcard characters supported: * | list(string) |
[] |
no |
http_headers | HTTP Header Blocks, name/values required | list(object({ |
[] |
no |
http_request_method | List of HTTP request methods or verbs to match. Maximum size is 40 characters. | list(string) |
[] |
no |
listener_arn | The ARN of the listener to which to attach the rule. | string |
n/a | yes |
oidc_config | Open ID Connect Configuration | object({ |
null |
no |
path_pattern | List of path patterns to match against the request URL. Maximum size of each pattern is 128 characters. | list(string) |
[] |
no |
priority | The priority for the rule between 1 and 50000. Leaving it unset will automatically set the rule with next available priority after currently existing highest rule | number |
null |
no |
query_strings | Key/value of query strings pattern to match | list(object({ |
[] |
no |
source_ip | List of source IP CIDR notations to match. You can use both IPv4 and IPv6 addresses. Wildcards are not supported. | list(string) |
[] |
no |
target_groups | The ARN and weight of the target groups to attach to the rule. | list(object({ |
n/a | yes |
Name | Description |
---|---|
output | Listener rule attributes |