rancherfederal / rke2-aws-tf

MIT License
84 stars 68 forks source link

Name length issues for nlb module #84

Closed mjnagel closed 10 months ago

mjnagel commented 1 year ago

I've been encountering issues with the NLB module name length:

Error: "name" cannot be longer than 32 characters

Specifically for these two lines:

I did notice there is already some name trimming/substringing happening here but it appears the port is putting it past the limit? It looks like the current names are trimmed down to 32 characters but the ports add an extra - + port number (~4 characters).

I haven't had a chance to dig into this further yet, as a workaround we just shortened our name that was being passed in.

junaid18183 commented 1 year ago

I stumbled upon this as well, here is a quick PR to fix it

https://github.com/rancherfederal/rke2-aws-tf/pull/91

adamacosta commented 10 months ago

Fixed by #91