2016-12-15 218 views
-1

我在AWS上有一個Ubuntu ec2實例。我爲這個實例帶了AMI。 我想將AMI存儲到S3存儲桶。有什麼辦法嗎?反正也有從S3存儲區導出AMI的嗎?如何將AMI文件存儲到S3存儲桶?

+1

您是否考慮過[Packer](https://www.packer.io/)? – Yaron

+0

它是一個Windows或Linux AMI? – Mahdi

回答

0

這是不可能導出一個AMI。

亞馬遜機器映像(AMI)是彈性塊存儲(EBS)卷的副本。 AMI存儲在Amazon S3中,但無法通過S3服務訪問。把它想象成存儲在AWS自己的S3存儲桶中,而不是你自己。

如果您希望導出磁盤映像,請使用標準磁盤實用程序將磁盤複製到ISO格式,然後將其複製並掛載到其他VM上。

0

謝謝約翰。

嗨,夥計們,我也與AWS支持聊天。

10:15:45 AM Myself: Well i have some doubts. I will ask and just clear in me on that. 
10:15:49 AM AWS support: Sure 
10:15:59 AM AWS support: I'll be happy to do so 
10:16:25 AM Myself: Is there any option to sore AMI in S3 bucket. 
10:16:46 AM AWS support: No, this is not possible 
10:17:05 AM AWS support: AMI data is a simple configuration file 
10:17:11 AM AWS support: This is backed by S3 
10:17:18 AM AWS support: But not stored in an S3 bucket 
10:17:27 AM AWS support: The exact same is true for Snapshots 
10:17:45 AM AWS support: It is stored and backed by S3- but not something that can be placed in one of your buckets 
10:17:59 AM Myself: is it possible to view that in s3? 
10:18:51 AM AWS support: No, this is not something that is visible in S3, I am sorry to say 
10:19:57 AM Myself: OK. I need to download the AMI . what can i do? 
10:20:19 AM AWS support: AMI data is not something that is downloadable 
10:20:35 AM AWS support: Are you seeking to Download your whole instance? 
10:20:46 AM AWS support: Or download a complete volume? 
10:21:07 AM AWS support: If you originally imported your instance from a VM, you can Export the VM 10:21:29 AM AWS support: But its an EC2 instance that was created in EC2, you can not- I am really sorry to say 
10:22:02 AM Myself: Okay fine. 
相關問題