How do I save an AMI to a S3 bucket?

前端 未结 3 2142
说谎
说谎 2021-02-19 03:23

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 ac

3条回答
  •  既然无缘
    2021-02-19 04:16

    Other than AMI Copy feature, now you can use AWS CLI to export and import them to and from S3.

    Check: https://docs.aws.amazon.com/cli/latest/reference/ec2/export-image.html

    You can use VMDK as the export/import format.

    In my case I encountered some strange Role related issue during the export and the reference here helped.

    Please be aware that you might need to give the s3 write permission as well to your policies attached.

提交回复
热议问题