使用CloudFormation创建Elastic Beanstalk“Hello,world。”Java env / app

问题描述 投票:2回答:1

据我所知,在创建Elastic Beanstalk环境时,会自动创建CloudFormation模板来管理env的资源。但是---为了避免任何混淆 - 这不是我的意思/想要做的。我想使用CloudFormation创建Elastic Beanstalk env / app本身。似乎没有找到这方面的例子。 CloudFormation模板会是什么样的,它会创建最简单的“Hello,world。” - 样式的Elastic Beanstalk env / app,以及随附的Java代码?

对于指导我正确方向的任何建议,我都很高兴。

java amazon-web-services elastic-beanstalk amazon-cloudformation
1个回答
3
投票

Elastic BeanStalk有四种不同的CloudFormation资源类型。

1)创建一个Elastic BeanStalk application

2)为Elastic Beanstalk应用程序创建一个application version,一个可部署代码的迭代

3)为Elastic Beanstalk应用程序创建configuration template

4)创建或更新AWS Elastic Beanstalk environment

注意:-

以上链接不直接提供样本来创建“Hello world”EB应用程序。但是,我认为您可以使用此信息并创建应用程序。

© www.soinside.com 2019 - 2024. All rights reserved.