generated from terraform-linters/tflint-ruleset-template
-
Notifications
You must be signed in to change notification settings - Fork 85
Closed
Labels
enhancementNew feature or requestNew feature or request
Description
The following rule applies to Application and Network Load Balancers: "It can have a maximum of 32 characters, and contain only alphanumeric characters and hyphens. It must not begin or end with a hyphen, or with internal-."
Found in Step 3, point 5a in both of these docs pages:
- https://docs.aws.amazon.com/elasticloadbalancing/latest/network/create-network-load-balancer.html#configure-load-balancer
- https://docs.aws.amazon.com/elasticloadbalancing/latest/application/create-application-load-balancer.html#configure-load-balancer
Currently fails during plan with this error:
│ Error: "name" cannot begin with "internal-": "internal-app-ALB"
│
│ with module.alb.aws_lb.this[0],
│ on .terraform/modules/alb/main.tf line 8, in resource "aws_lb" "this":
│ 8: name = var.name
│
╵
I have not found equivalent rule for Gateway Load Balancer naming.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request