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
      1. 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)
      1. Deploy your application onto new environment
      1. Perform a CNAME swap or Route 53 update

Decouple RDS

  1. Create snapshot of RDS database (as safeguard)
  2. Go to RDS console and protect the RDS database from deletion
  3. Create new Beanstalk environment without RDS. Point application to existing RDS
  4. Perform CNAME swap.
  5. Terminate old environment (old RDS won't be deleted)
  6. Delete cloudformation stack (which is in DELETE_FAILED state)