How can I transfer data from an EBS volume to a S3 bucket?

CoreCoder picture CoreCoder · Jul 10, 2014 · Viewed 7.6k times · Source

I have about 400 GB data on an Amazon EBS volume and I need this data in a S3 bucket for Hadoop EMR usage.

How can I move/copy data from an EBS volume to a S3 bucket (both S3 bucket and EBS volume are in the same AWS region)?

Thanks

Answer

razimbres picture razimbres · May 10, 2018

Firstly get your credentials at AWS via IAM:

Go to AWS/Services/IAM select Users and create an Administrator. After that, download your credentials.csv and run in shell:

aws configure

Enter your Access key ID and Secret access key.

Then copy files and folders from EBS in EC2 to S3:

aws s3 sync /ebs-directory/ s3://your-bucket​