如何保存的AMI到S3存储? [英] How do I save an AMI to a S3 bucket?

查看:666
本文介绍了如何保存的AMI到S3存储?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经使用了亚马逊AWS控制台创建的AMI(EBS AMI)。这AMI连接到它2快照。 现在我想备份AMI到S3桶。这可能吗?

其实,我必须这样做才能够再往前的AMI到一个水桶在不同的地区并注册AMI在不同的地区使用。

任何线索?

解决方案

更新

我最初的回答仍然适用有关的问题,因为这样(见下文),但考虑到你的真的需要这样做是为了能够再往前的AMI,以[...]不同的区域,你会很高兴的AWS刚刚发布跨区域的EC2 AMI复制来解决这一长期存在的功能要求:

  

AMI复制使您能够轻松复制你之间的Amazon Machine Images   AWS地区。 AMI复制有助于实现几个关键场景,包括:

     
      
  • 简单一致的多区域部署 - 您可以复制AMI   从一个地区到另一个地区,使您能够轻松启动一致   基于相同的AMI为不同的区域的实例。
  •   
  • 可扩展性 - 您可以更轻松地设计和建造世界级规模应用   满足用户的需求,无论他们身在何处。
  •   
  • 性能 - 您可以通过分发提高性能的   应用程序和定位应用程序中的重要组成部分   更接近用户。你也可以利用   特定区域的功能,如实例类型或其他AWS服务。
  •   
  • 甚至更高的可用性 - 你可以设计和部署应用程序   跨AWS地区,以提高可用性。
  •   

初始答案

  

现在我想备份AMI到S3桶。这可能吗?

亚马逊EBS 的确实的提供了创建点即时快照的能力卷,这是坚持到Amazon S3 的,这种操作是你的控制之外,并且​​完全由EC2处理,请参见相应的常见问题解答<一href="http://aws.amazon.com/ec2/faqs/#Will_I_be_able_to_access_my_snapshots_using_the_regular_Amazon_S3_APIs"相对=nofollow>我能否使用常规的Amazon S3 A​​PI访问我的快照:

  

没有,快照只能通过亚马逊的EC2 API的。

您可以通过以下埃里克·哈蒙德的精心文章复制EBS启动的AMI EC2地区之间实现你的目标,指导您完成所有必要的步骤(颇有些虽然)。

I've created an AMI(EBS AMI) using the Amazon AWS console. That AMI has 2 snapshots attached to it. Now I want to backup that AMI to a S3 bucket. Is this possible?

I actually need to do this to be able to then move that AMI to a bucket in a different region and register that AMI for use in that different region.

Any clues?

解决方案

Update

My initial answer still applies concerning the question as such (see below), however, given you actually need to do this to be able to then move that AMI to [...] a different region, you will be pleased that AWS has just released Cross Region EC2 AMI Copy to address this long standing feature request:

AMI Copy enables you to easily copy your Amazon Machine Images between AWS Regions. AMI Copy helps enable several key scenarios including:

  • Simple and Consistent Multi-Region Deployment - You can copy an AMI from one region to another, enabling you to easily launch consistent instances based on the same AMI into different regions.
  • Scalability - You can more easily design and build world-scale applications that meet the needs of your users, regardless of their location.
  • Performance - You can increase performance by distributing your application and locating critical components of your application in closer proximity to your users. You can also take advantage of region-specific features such as instance types or other AWS services.
  • Even Higher Availability - You can design and deploy applications across AWS regions, to increase availability.

Initial Answer

Now I want to backup that AMI to a S3 bucket. Is this possible?

While Amazon EBS indeed provides the ability to create point-in-time snapshots of volumes, which are persisted to Amazon S3, this operation is outside of your control and entirely handled by EC2, see the respective FAQ Will I be able to access my snapshots using the regular Amazon S3 APIs?:

No, snapshots are only available through the Amazon EC2 APIs.

You can achieve your goal by following Eric Hammond's elaborate article Copying EBS Boot AMIs Between EC2 Regions, which guides you through all required steps (quite some though).

这篇关于如何保存的AMI到S3存储?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆