如何在多个EC2实例上更改应用程序? [英] How to change app on multiple ec2 instances?
问题描述
我是AWS的新手。谁能向我指出如何更新驻留在多个ec2实例上的应用程序的正确方向?
I'm new to AWS. Can anyone point me in the right direction of how to update my app residing on multiple ec2 instances?
我找到了这个答案:如何更新多个负载均衡的EC2实例?指向本文:> http://linuxforlovers.wordpress.com/2009/04/11/sharing-amazon-elastic- block-store-among-multiple-instances / 本文已更新,并解释了您可以从EBS支持的AMI引导,这些AMI到目前为止可能基本上没有限制。
I found this answer: How do I update multiple EC2 instances that are load-balanced? which points to this article: http://linuxforlovers.wordpress.com/2009/04/11/sharing-amazon-elastic-block-store-among-multiple-instances/ The article has been updated and explains you can boot from EBS-backed AMIs that can have essentially unbounded size as of now.
这是否意味着无需拥有可以用我的应用程序更新的ebs实例,而是可以将应用程序加载到ec2实例上,创建一个保存到ebs卷的ami,然后从EBS支持的ami进行引导?
Does this mean instead of having a ebs instance that I can update with my app, I can load the app on an ec2 instance, create an ami saved to an ebs volume, then boot from EBS-backed ami?
这是否意味着我将启动配置设置为使用ami而不是ami的ebs卷?
Does this mean I set my launch configuration to ebs volume with the ami as opposed to just an ami?
本质上,我的问题是,如何更新在多个ec2实例上运行的应用程序而无需登录每台计算机并更改应用程序?
In essence my question is, how do I update my app that is running on multiple ec2 instances without logging into each machine and changing the app?
谢谢!
推荐答案
我认为实现此目的的方法是在每推出一个新软件时创建一个新的ami。然后,您为每个AMI构建一个新的启动配置。然后,使用新的启动配置更新扩展组。
I think the way to accomplish this is to create a new ami with each new piece of software rolled out. You then build a new launch config for each ami. You then update your scaling group with the new launch config.
这篇关于如何在多个EC2实例上更改应用程序?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!