-
-
Notifications
You must be signed in to change notification settings - Fork 124
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
Add alb_name variable to specify load balancer name #58
Conversation
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
Is there a chance for this MR to get reviewed? Thanks! |
@adamantike If you wanted to provide just a blanket name to the ALB resource then you can just provide @aknysh what are your thoughts here? I'm sure you've run into this type of request / PR before. |
Thanks for the feedback, @Gowiem!
The main motivation for this PR, is that load balancer names are limited to 32 characters, which could be a reason for not having this pattern in other CloudPosse's modules, as the autogenerated label's id is fine when there are no length limitations. Other alternatives could be to expose |
Ah @adamantike, you're just looking to limit the name length. Sorry, I didn't read your "Why" section it seems - my bad! I think introducing the Considering that, would you want to do a |
mmmm this does not seem to be needed since is already possible to with the current module
That will set the loadbalancer with whatever name you want, without using a label module but I think in this case what @Gowiem recommend with the context.tf is a better and more complete way |
@adamantike please check out the comments above. I'm going to close this out considering there are better ways of implementing the desired functionality. Thanks! |
What
alb_name
variable to avoid using the default label id, if set.Why
References