Can AWS Elastic Beanstalk be used to deploy an existing EC2 instance?

I have an Amazon EC2 instance that I have been using for quite some time to deploy a .net application. The existing instance has a large database, already created on it, which is used with the application. I am trying to find a way to use an elastic beanstalk to deploy changes to the site (the database does not need to be touched at all, just updating the site that reads / writes to it). I am having trouble finding any instructions on how to do this or if possible. The application is already deployed also on my EC2 instance. Sorry for being so vague when using the elastic beanstalk for the first time. Thanks!

+4
source share
1 answer

This is not possible: AWS Elastic Beanstalk is a rather unique platform as a service (PaaS) offering and includes various AWS products such as Amazon EC2 , Auto Scale , Elastic load balancing, etc., which must be combined to achieve the desired result, see Architectural Overview for details.

If you want to use the elastic beanstalk to deploy changes to the site in the future, I would recommend moving the application level of your solution to the Elastic Beanstalk environment, keeping the database level in the current instance.

  • As a welcome side effect, it will also allow you to scale both levels up and down independently, which is usually required anyway at some point; for example, you could use several smaller instances of EC2 for the application, rather than the supposedly large one implied with your current single instance, in order to get fault tolerance and / or cost savings due to automatic scaling, etc.
+5
source

All Articles