无法将ec2实例导出到S3 [英] Unable to export ec2 instance to 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.com必须
具有WRITE和READ_ACL权限S3存储桶。
Error :An error occurred (AuthFailure) when calling the CreateInstanceExportTask operation: vm-import-export@amazon.com must have WRITE and READ_ACL permission on the S3 bucket.
我无法将vm-import-export@amazon.com添加为受让人。
I'm not able to add vm-import-export@amazon.com 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的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!