问题
I want to copy an EBS snapshot to my S3 bucket, but i cannot find a way to do it after trying and researching. I shall be grateful to you for any information that could get me started on a solution.
回答1:
copy-snapshot command is the AWS CLI command that copies the snapshot of EBS volume and stores it in Amazon S3. You can copy the snapshot within the same region or from one region to another.
This example command copies the snapshot of arbitrary id from one region to another.
aws --region us-east-1 ec2 copy-snapshot --source-region us-west-2 --source-snapshot-id snap-066877671789bd71b --description "This is my copied snapshot."
for more info about this refer https://docs.aws.amazon.com/cli/latest/reference/ec2/copy-snapshot.html
回答2:
With Amazon EBS, you can create point-in-time snapshots of volumes, which can be stored in Amazon S3. After you've created a snapshot and it has finished copying to Amazon S3, you can copy it from one AWS region to another, or within the same region. The snapshot copy ID is different than the ID of the original snapshot. EBS snapshots are stored in Amazon S3. However, you will not find your snapshots in any of your S3 buckets. AWS uses the S3 infrastructure to store your EBS snapshots, but you cannot access them while they reside in S3. You can copy the AWS EBS Snapshot using either AWS EC2 Console or Command Line.
i) Copy EBS snapshot using Console-: Open the EC2 console-> Choose snapshot in the navigation pane-> Choose copy from actions list -> In Copy Snapshot dialog box provide necessary details like destination region, description, encryption etc and select copy.
ii) Copy EBS snapshot using Command line-: Run the below command in AWS CLI:
aws --region <destination region> ec2 copy-snapshot --source -<source region> --source -snapshot-id <snap-0xyz9999999> --description
来源:https://stackoverflow.com/questions/48423813/copying-aws-snapshot-to-s3-bucket