首页 > 其他 > 详细

Deploy war from S3 to AWS Elastic Beanstalk

时间:2016-05-03 17:51:39      阅读:149      评论: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
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!