码迷,mamicode.com
首页 > 其他好文 > 详细

Deploy war from S3 to AWS Elastic Beanstalk

时间:2016-05-03 17:54:40      阅读:153      评论:0      收藏:0      [点我收藏+]

标签:

http://stackoverflow.com/questions/25683649/deploy-war-from-s3-to-aws-elastic-beanstalk

 

I have got the best answer in this post :

it requires 3 simple steps using AWS CLI:

  1. Upload to S3 bucket: aws s3 cp /var/lib/tomcat7/webapps/ROOT.war s3://elasticbeanstalk-ap-southeast-1-xxxxxx/myROOT.war
  2. Create application version: aws elasticbeanstalk create-application-version --application-name your_app_name --version-label your_version_label --source-bundle S3Bucket=elasticbeanstalk-ap-southeast-1-xxxxxx,S3Key=myROOT.war
  3. Update your environment: aws elasticbeanstalk update-environment --environment-nameyour_app_name --version-label your_version_label

I have created a bash script, which takes just 3 seconds for all the above steps. Do go through the link for more descriptive answer.

 

Deploy war from S3 to AWS Elastic Beanstalk

标签:

原文地址:http://www.cnblogs.com/ycliu912/p/5455710.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!