在 Elastic Beanstalk 上部署单独的前端 Web 应用程序和 RESTful API?

Anm*_*pta 7 amazon-web-services amazon-elastic-beanstalk

我的问题与:https : //forums.aws.amazon.com/thread.jspa? threadID = 140592完全相同,这是未回答的。

当人们使用 Elastic Beanstalk 在 Apache 中运行单独的前端应用程序和在 Tomcat 中运行的 RESTful API 时,他们通常如何部署。

将 Elastic Beanstalk 用于前端和后端?

或者有没有办法将两者都部署在同一个 Elastic Beanstalk 中?

Dav*_*ple 4

根据您的用例,我建议您使用 S3 托管静态文件,将 API 托管在 Elastic Beanstalk 上,并使用 Cloudfront 在它们之间路由请求。

类似用例:https ://www.codeengine.com/articles/process-form-aws-api-gateway-lambda/