16

I am have deployed a .Net website to AWS Elastic Beanstalk. I want to now deploy another .Net web project (a web service) to the same EC2 instance that was created by AWS Elastic Beanstalk, but the selection to "use and existing environment" in the Environment page of the publishing wizard is greyed out.

Is there a way to do this?

1
  • Asked this quite a few years back now. Have since moved on to use Azure Web Sites, which give me the flexibility and ease of use I wanted when I asked this. Commented Nov 18, 2014 at 9:13

5 Answers 5

12

Update: This is now possible https://aws.amazon.com/about-aws/whats-new/2016/08/aws-elastic-beanstalk-supports-asp-net-core-and-multi-app-net-support/

No. .Net deployment has some limitations on EB compared to the other frameworks. You cannot deploy multiple applications on the same instance.

Sign up to request clarification or add additional context in comments.

5 Comments

Can we do the above in php??
Deploying more than one application to AWS using Elastic Beanstalk is now possible
@vini did you ever get an answer to your question about using php? I am curious about this too.
Php is Linux so why not use docker compose file to load multiple php dockers
I think you can deploy it as of 2023
3

You can use Multicontainer docker environment to deploy multiple applications http://docs.aws.amazon.com/elasticbeanstalk/latest/dg/create_deploy_docker_ecs.html

Comments

0

You can also do a multiple-app deployment using the Visual Studio AWS Toolkit:

docs.aws.com/toolkit-for-visual-studio

Comments

0

This is how to do it for Tomcat environments - https://docs.aws.amazon.com/elasticbeanstalk/latest/dg/java-tomcat-multiple-war-files.html.

To create an application source bundle that contains multiple WAR files, organize the WAR files using the following structure.

MyApplication.zip
├── .ebextensions
├── .platform
├── foo.war
├── bar.war
└── ROOT.war

When you deploy a source bundle containing multiple WAR files to an AWS Elastic Beanstalk environment, each application is accessible from a different path off of the root domain name. The preceding example includes three applications: foo, bar, and ROOT. ROOT.war is a special file name that tells Elastic Beanstalk to run that application at the root domain, so that the three applications are available at http://MyApplication.elasticbeanstalk.com/foo, http://MyApplication.elasticbeanstalk.com/bar, and http://MyApplication.elasticbeanstalk.com.

Comments

-1

You cannot deploy a "Web Site" and a "Web Application" on the same instance (or set of instances, such as that formed by ElasticBeastalk) because they run different resources and policies. This is accordingly to the tutorial i came across on their site.

1 Comment

Not true. You have docker and multi. Net apps and there's even a workaround for multiple java war files.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.