映像AMI中的AWS EC2新实例 [英] AWS EC2 new instance from image AMI
问题描述
我想基于当前的EC2 Linux实例创建AMI映像.有些事情使我感到困扰,并且在网络上找不到我的问题的准确答案.
我当前的EC2实例具有:
- 两个私有接口,例如eth0和eth0:1
- 两个弹性IP地址,每个都指向ifaces上方
我缺少的答案是,是否将以相同方式创建基于该映像启动的新实例?以某种方式复制我当前的设置等?如果以1:1的比例克隆甚至有问题吗?因为,从负载平衡的角度来看,这已经足够了.
从另一方面讲,它在私有IP寻址的意义上不能重复,因为我无法区分它们与ssh的连接. Any1有一些基于EC2实例创建映像的经验,可以提示我它的外观吗?
从Amazon Machine Image(AMI)启动实例时,磁盘将在创建AMI时包含磁盘的精确副本./p>
但是,启动新实例时,其他属性可能会有所不同,例如弹性网络接口的数量,当然,IP地址很可能会有所不同.因此,启动实例后,您需要从EC2请求类似的设置.
I would like to create AMI image based on my current EC2 Linux instance. There are things that bothers me tough, and I didn't find any accurate answer to my questions on the web.
My current EC2 instance has:
- two private interfaces like eth0 and eth0:1
- two elastic IP addresses, each of them points to above ifaces
The answer I'm missing is, will the new instance launched based on this image be created in the same manner? Duplicating somehow my current settings, etc? Is it even a problem if cloned 1:1? Since, that would be more sufficient from the Load Balancing standpoint.
From the other side, it can't be duplicated in the meaning of private IP addressing, cause I wouldn't be able to differentiate them connecting with ssh. Any1 has some experience creating images based on EC2 instances, and can hint me how it looks?
When launching an instance from an Amazon Machine Image (AMI), the disks will contain an exact copy of the disk at the time that the AMI was created.
However, other attributes might be different when launching a new instance, such as the number of Elastic Network Interfaces and, of course, the IP address will most likely be different. Therefore, you will need to request similar settings from EC2 when then instance is launched.
这篇关于映像AMI中的AWS EC2新实例的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!