AWS has a 32 character limit on ElasticLoadbalancingV2 object names. Since we use the user supplied instance name in these object names the instance name must be constrained so that the 32 character limit can not be exceeded. Other wise the cloud formation stack creation will fail part way through with a name length violation error and it is not obvious that the instance name is related to the name that violates the length limit.
AWS has a 32 character limit on ElasticLoadbalancingV2 object names. Since we use the user supplied instance name in these object names the instance name must be constrained so that the 32 character limit can not be exceeded. Other wise the cloud formation stack creation will fail part way through with a name length violation error and it is not obvious that the instance name is related to the name that violates the length limit.