Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Can I have multiple websites in one AWS Elastic Beanstalk Application?

I'm very confused about Elastic Beanstalk Application

I currently host all my websites in a windows server iis based, elastic ip server.

it is a medium ec2 instance so I pay quite a bit.

I was considering migrating it to Elastic Beanstalk Application instead of using my current one.

after creating one Elastic Beanstalk Application I notice it creates a t1.micro ec2 instance and Amazon say they scale under demand, which is fine.

my question is about how many Elastic Beanstalk Application applications I need to have?

can I have all my 30 websites under 1 Elastic Beanstalk Application?

if I have to create an Elastic Beanstalk Application(which is a t1.micro) for each website I will spend over $400.00 month

please, clarify

thanks

like image 845
RollRoll Avatar asked May 17 '16 18:05

RollRoll


People also ask

How many applications and environments can I run with AWS Elastic Beanstalk?

An environment is a collection of AWS resources running an application version. Each environment runs only one application version at a time, however, you can run the same application version or different application versions in many environments simultaneously.

How many apps does Elastic Beanstalk allow you to store?

Elastic Beanstalk applies an application's lifecycle policy each time you create a new application version, and deletes up to 100 versions each time the lifecycle policy is applied.

What two types of environments can be created when using Elastic Beanstalk?

In AWS Elastic Beanstalk, you can create a load-balanced, scalable environment or a single-instance environment.

When should you not use Beanstalk?

Elastic Beanstalk isn't great if you need a lot of environment variables. The simple reason is that Elastic Beanstalk has a hard limit of 4KB to store all key-value pairs. The environment had accumulated 74 environment variables — a few of them had exceedingly verbose names.


1 Answers

With IIS, the option of deploying multiple apps is not available. Please refer to the following stackoverflow discussion Deploy multiple applications to a single EC2 instance using AWS Elastic Beanstalk

This feature is only available for java applications. You can bundle multple WAR files into one ZIP file for deployment.

Here is aws documentation for the feature release. https://aws.amazon.com/about-aws/whats-new/2015/06/aws-elastic-beanstalk-supports-multiple-war-files-and-m4-instances/

like image 99
Shibashis Avatar answered Sep 23 '22 04:09

Shibashis