VM Export: An error occurred (Invalid Parameter) when calling the ExportImage operation: Access denied to the bucket

0

Trying to export the VM with the following command

aws ec2 export-image \
    --image-id *******  \
    --disk-image-format VMDK \
    --s3-export-location S3Bucket=auditor-updates,S3Prefix=export/

And getting the following error: An error occurred (InvalidParameter) when calling the ExportImage operation: Access denied to the bucket auditor-updates

The bucket and the folder definitely exist, typo is impossible.

I launched the command under the AWS CLI credentials corresponding to the DevOps role, however, I also tried root access just to make sure actual account permissions are not the reason.

1개 답변
0

Hello Vector-t13,

It looks like you are trying to export your ec2 VM to your S3 bucket and are receiving the following error: An error occurred (InvalidParameter) when calling the ExportImage operation: Access denied to the bucket auditor-updates

One thing you may need to do, is to make sure you attach an access control List (ACL) to your S3 bucket to grant permissions to AWS to write to the bucket [1]. The exact ACL depends on the region the EC2 instance resides in. An overview of ACLs and other resources can be found in the links below [2].

Also, as a reminder, please remember not to share any sensitive information on re:Post since it is a public platform.

Let me know if you have any other questions.

References:
[1]https://docs.aws.amazon.com/vm-import/latest/userguide/vmexport.html#vmexport-prerequisites
[2]https://docs.aws.amazon.com/AmazonS3/latest/userguide/acl-overview.html

답변함 2년 전

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠