无法将ec2实例导出到S3

编程入门 行业动态 更新时间:2024-10-28 05:19:46
本文介绍了无法将ec2实例导出到S3的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

我正在尝试将EC2实例(使用AMI创建的实例导出,该实例是使用VM Import Export Service先前导入的)到S3存储桶中,该实例不断失败。我还尝试将存储桶访问权限更改为公共,但错误仍然存​​在。我同时使用了python SDK和CLI命令,它们都返回相同的错误

I am trying to export an EC2 instance (instance created with AMI which was imported earlier using VM import export service) to S3 bucket which is constantly failing . I also tried changing the bucket access to public still the error continues . I used both python SDK and CLI commands where both returns the same error

使用的CLI:

aws ec2 create-instance-export-task --instance-id i-***** --target-environment vmware --export-to-s3-task file://C:\file.json

包含存储桶和VM映像详细信息的json文件

json file containing bucket and VM image details

错误:调用 CreateInstanceExportTask操作时发生错误(AuthFailure):vm-import-export@amazon必须具有WRITE和READ_ACL权限S3存储桶。

Error :An error occurred (AuthFailure) when calling the CreateInstanceExportTask operation: vm-import-export@amazon must have WRITE and READ_ACL permission on the S3 bucket.

我无法将vm-import-export@amazon添加为受让人。

I'm not able to add vm-import-export@amazon as a grantee .

任何帮助将不胜感激

预先感谢

推荐答案

将访问控制列表(ACL)附加到包含以下授权**的S3存储桶中:

Attach an access control list (ACL) to your S3 bucket containing the following grant**:

  • 授权人:c4d8eabf8db69dbe46bfe0e517100c554f01200b104d59cd408e777ba442a322
  • 权限:读取和写入

更多信息,请参见使用VM Import / Export将实例导出为VM 。

**除非您的目标是巴林,香港,北京或GovCloud(美国西部)的S3存储桶(受赠方不同),请参阅文档。

** unless you're targeting an S3 bucket in Bahrain, Hong Kong, Beijing, or GovCloud (US-West), which have different grantees, see the docs.

更多推荐

无法将ec2实例导出到S3

本文发布于:2023-10-22 23:50:12,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1519101.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:实例   导出到

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!