I being struggling with the name of an application given that I had gave it a wrong name. Is there a way to change the application name ? if not what possible solution would you recommend me to do in this case.
You cannot change the name of an Elastic Beanstalk application. However, here is how I moved an environment to a new application. In the end you will have a new environment within a new application with an almost identical configuration as your existing environment and application.
The big steps are…
We'll dig into each one below.
To follow you these instructions you'll need to…
Run aws elasticbeanstalk create-application --application-name my-new-application
eb config save
.elasticbeanstalk/saved_configs/<my config>.cfg.yml
application_name: <old application name>
to your new application name in .elasticbeanstalk/config.yml
.cfg.yml
extension eb config put <config name>
eb create <environment name> --cfg <config name>
When you're sure all is well with your new application, clean up your old application using this guide from Amazon.
tail /var/log/eb-engine.log
or cd /var/app/current
to look at your deployed app.How about this ?
clone the environment to a new name and remove the old one. The site URL will change however.
keep the old url by swapping the cnames after the clone, and before destroying the original (using eb cli):
eb swap original-environment-name -n new-environment-name
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With