eksctl
eksctl copied to clipboard
[Feature] Trim stack names or provide an early warning
What feature/behavior/change do you want?
When creating a cluster with a relatively long name, like ilya-abcdefg-test1-graviton, and having an IRSA config with SAs with long namespace+name string, e.g. Cluster API in my case, one can hit this:
2024-04-05 11:05:21 [✖] creating CloudFormation stack "eksctl-ilya-abcdefg-test1-graviton-addon-iamserviceaccount-capa-eks-control-plane-system-capa-eks-control-plane-controller-manager": operation error CloudFormation: CreateStack, https response error StatusCode: 400, RequestID: b6b36dbe-eed8-4fe1-bbab-bf398fd3c089, api error ValidationError: Stack name cannot exceed 128 characters
What is unfortunate is that this error could have been caught or avoided earlier. In this case, I had to wait 10 minutes for this error to come up.
Why do you want this feature?
Failing early is always better :)