Migration
- To change things that you can't change
- For example, you cannot change from network load balancer to application load balancer after creating Elastic Beanstalk.
- In that case, you need to do migration
Load Balancer
- To migrate
- Create a new environment with the same configuration except load balance (can't clone for this one because it will put the Load Balancer in as well)
- Deploy your application onto new environment
- Perform a CNAME swap or Route 53 update
Decouple RDS
- Create snapshot of RDS database (as safeguard)
- Go to RDS console and protect the RDS database from deletion
- Create new Beanstalk environment without RDS. Point application to existing RDS
- Perform CNAME swap.
- Terminate old environment (old RDS won't be deleted)
- Delete cloudformation stack (which is in
DELETE_FAILED
state)