Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Deploying separate front end web app and RESTful API on Elastic Beanstalk?

My question is exactly same as: https://forums.aws.amazon.com/thread.jspa?threadID=140592 , which is unanswered.

How do people usually deploy when they have separate front end application running in say Apache, and a RESTful API running in Tomcat, using Elastic Beanstalk.

Separate Elastic Beanstalk for front end and back end?

Or is there a way to deploy both in the same Elastic Beanstalk?

like image 989
Anmol Gupta Avatar asked Jan 11 '17 06:01

Anmol Gupta


1 Answers

Based on your use-case I would recommend you host your static files with S3, your API on Elastic Beanstalk and use Cloudfront to route requests between them.

Similar use case: https://www.codeengine.com/articles/process-form-aws-api-gateway-lambda/

like image 54
Dave Maple Avatar answered Sep 20 '22 04:09

Dave Maple