What is Amazon Simple Storage Service (Amazon S3) and commands ?

by Vishnu Sharma May 11 in Amazon 0 Comments 67 Views

What is Amazon Simple Storage Service (Amazon S3) and commands ?

Amazon Simple Storage Service is storage for the Internet. It is designed to make web-scale computing easier for developers.


Amazon S3 provides access to reliable, fast, and inexpensive data storage infrastructure. Amazon S3 stores data objects redundantly on multiple devices across multiple facilities. You can use the redundant data stored in Amazon S3 to recover quickly and reliably from instance or application failures.

Every object stored in Amazon S3 is contained in a bucket. Amazon S3 buckets are similar to Internet domain names. Buckets organize the Amazon S3 namespace at the highest level and identify the account responsible for that storage. Objects stored in the buckets have a unique key value and are retrieved using a HTTP URL address.


Download public objects from Amazon S3:

wget https://your_bucket.s3.amazonaws.com/path-to-file


Use the following command to copy an object from Amazon S3 to your instance:

aws s3 cp s3://my_bucket/my_folder/my_file.ext my_copied_file.ext


Use the following command to copy an object from your instance back into Amazon S3:


aws s3 cp my_copied_file.ext s3://my_bucket/my_folder/my_file.ext


Download an entire Amazon S3 bucket to a local directory on your instance:


aws s3 sync s3://remote_S3_bucket local_directory