You can't change the name of a load balancer, because that would break the sites that use the load balancer.
ELBs have an associated hostname, that looks like this:
${balancer_name}-${opaque_identifier}.${region}.elb.amazonaws.com
(The ${opaque_identifier}
is assigned by the ELB provisioning infrastructure to disambiguate same-named ELBs belonging to different accounts, but has no documented external meaning.)
Renaming the load balancer, if it were allowed, would necessarily change this hostname, which is how sites are pointed to the balancer, using CNAME
records or A
-record aliases (in Route 53)... and that would break the sites, since they would then be pointing to a nonexistent hostname.
The simplest solution is to create a new balancer with the name you want, using the same configuration, then migrate to it: with the old one still functioning normally, attach the new balancer to the same back-end instances, wait for them to show "in service" ... test ... then change the DNS entries pointing to the old balancer to point to the new balancer ... wait for the TTLs on the old DNS records to elapse, for the new balancer to pick up the traffic, and for the old balancer to show no traffic in the Cloudwatch metrics ... verify behavior ... then delete the old balancer.
Having the same set of instances attached to multiple ELBs is a supported configuration, so you should not have any transitional issues with this if you configure the new balancer identical to the old one, with the same subnets, security groups, listener configurations, etc.