Error: aws_elb DuplicateLoadBalancerName
/kind bug
What happened: In a multi-cluster environment, error occurred when applying a new cluster:
DEBU[0073] Error: Error applying plan: app=tarmak module=terraform std=err
DEBU[0073] app=tarmak module=terraform std=err
DEBU[0073] 1 error occurred: app=tarmak module=terraform std=err
DEBU[0073] * module.kubernetes.aws_elb.kubernetes_master: 1 error occurred: app=tarmak module=terraform std=err
DEBU[0073] * aws_elb.kubernetes_master: DuplicateLoadBalancerName: Load Balancer named env01mercher-cluster01m-api already exists and it is configured with different parameters. app=tarmak module=terraform std=err
What you expected to happen: New ELB to be configured for second cluster
How to reproduce it (as minimally and precisely as possible):
Apply a multi-cluster environment with a 12-character name (e.g. bugtestenv00)
Within this environment, apply a cluster with a 16-character name (e.g. bugtestcluster01)
Within same environment, apply a cluster with the same 16-character name (but alter last character) (e.g. bugtestcluster02).
Anything else we need to know?: It seems this is down to the fact that the cluster name gets truncated to produce the load balancer name, which causes a naming conflict.
AWS docs show that an ELB name of up to 32 characters is allowed