Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ALB target group name is limited to 32 characters #27

Closed
DownRangeDevOps opened this issue Sep 23, 2019 · 1 comment · Fixed by #96
Closed

ALB target group name is limited to 32 characters #27

DownRangeDevOps opened this issue Sep 23, 2019 · 1 comment · Fixed by #96

Comments

@DownRangeDevOps
Copy link

Error: "name" cannot be longer than 32 characters

  on .terraform/modules/alb/main.tf line 93, in resource "aws_lb_target_group" "default":
  93: resource "aws_lb_target_group" "default" {
@aknysh
Copy link
Member

aknysh commented Oct 28, 2019

@techfishio
you can use target_group_name to provide your own name for the target group instead of using the one generated by the label module (which depending on the length of namespace, stage and name could be more than 32 chars).
Will close for now.

@aknysh aknysh closed this as completed Oct 28, 2019
adamantike added a commit to adamantike/terraform-aws-alb that referenced this issue Sep 10, 2020
According to AWS docs [0], the Load Balancer name is limited to 32
characters. Similar to cloudposse#27, this diff adds an `alb_name` variable to
to avoid using the default label id, if set.

[0] https://docs.aws.amazon.com/elasticloadbalancing/2012-06-01/APIReference/API_CreateLoadBalancer.html
adamantike added a commit to adamantike/terraform-aws-alb that referenced this issue Sep 10, 2020
According to AWS docs [0], the Load Balancer name is limited to 32
characters. Similar to cloudposse#27, this diff adds an `alb_name` variable
to avoid using the default label id, if set.

[0] https://docs.aws.amazon.com/elasticloadbalancing/2012-06-01/APIReference/API_CreateLoadBalancer.html
adamantike added a commit to adamantike/terraform-aws-alb that referenced this issue Dec 3, 2020
According to AWS docs [0], the Load Balancer name is limited to 32
characters. Similar to cloudposse#27, this diff adds an `alb_name` variable
to avoid using the default label id, if set.

[0] https://docs.aws.amazon.com/elasticloadbalancing/2012-06-01/APIReference/API_CreateLoadBalancer.html
adamantike added a commit to adamantike/terraform-aws-alb that referenced this issue Jan 6, 2021
According to AWS docs [0], the Load Balancer name is limited to 32
characters. Similar to cloudposse#27, this diff adds an `alb_name` variable
to avoid using the default label id, if set.

[0] https://docs.aws.amazon.com/elasticloadbalancing/2012-06-01/APIReference/API_CreateLoadBalancer.html
adamantike added a commit to adamantike/terraform-aws-alb that referenced this issue Jan 27, 2021
According to AWS docs [0], the Load Balancer name is limited to 32
characters. Similar to cloudposse#27, this diff adds an `alb_name` variable
to avoid using the default label id, if set.

[0] https://docs.aws.amazon.com/elasticloadbalancing/2012-06-01/APIReference/API_CreateLoadBalancer.html
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants