Store and Retrieve a File with HAQM S3
Introduction
This step-by-step how-to guide will help you store your files in the cloud using HAQM Simple Storage Solution (HAQM S3). HAQM S3 is a service that enables you to store your data (referred to as objects) at massive scale. In this guide, you will create an HAQM S3 bucket (a container for data stored in HAQM S3), upload a file, retrieve the file, and delete the file.
The resources you create in this guide are AWS Free Tier eligible.
Implementation
1. Open the HAQM S3 console
Click on the AWS Management Console home to open the console in a new browser window, so you can keep this step-by-step guide open. When the screen loads, enter your user name and password to get started. Then type S3 in the search bar and select S3 to open the console.

Upload a file
In this step, you will upload a file to your new HAQM S3 bucket.
1. Create S3 bucket
In the S3 dashboard, click Create Bucket.
If this is the first time you have created a bucket, you will see a screen that looks like the image pictured here.
If you have already created S3 buckets, your S3 dashboard will list all the buckets you have created.

2. Enter bucket name
Enter a bucket name. Bucket names must be unique across all existing bucket names in HAQM S3. For this guide, we have used mysuperawsbucket, but you should choose a name that is relevant and unique to you. There are a number of other restrictions on S3 bucket names as well. Once you've selected a name, select a Region to create your bucket in.

3. Configure permissions
You have the ability to set permission settings for your S3 bucket. Leave the default values and select Next.

4. Review and create
You have many useful options for your S3 bucket including Versioning, Tags, Default Encryption, and Object Lock. We won't enable them for this tutorial.
Select Create bucket.

Create an S3 bucket
In this step, you will create an HAQM S3 bucket. A bucket is the container you store your files in.
1. Open your bucket
You will see your new bucket in the S3 console. Click on your bucket’s name to navigate to the bucket.

2. Choose Upload
You are in your bucket’s home page. Select Upload.

3. Add files
To select a file to upload, either click Add files or Add folder and select sample file(s) that you would like to store or Drag and Drop a file on the upload box. Your file(s) will be displayed after you have selected file(s) to upload.

4. Set permissions
You have the ability to review destination details and permissions. For this tutorial, leave the default values.

5. Configure properties
You have the ability to set property settings like storage class, server-side encryption, additional checksums, tags, and metadata with your object. Leave the default values and select Upload.

6. Confirm upload
You will see your object in your bucket’s home screen.

Retrieve the object
In this step, you will download the file from your HAQM S3 bucket.
1. Download the object
Select the checkbox next to the file you would like to download, then select Download.

Delete the object and bucket
You can easily delete your object and bucket from the HAQM S3 console. In fact, it is a best practice to delete resources you are no longer using so you don’t keep getting charged for them.
1. Delete the object
You will first delete your object. Select the checkbox next to the file you want to delete and select Delete.

2. Confirm deletion
Review and enter permanently delete in the text input field to confirm deletion. Click Delete objects.

4. Delete the bucket
Select the radio button to the left of the bucket you created, then choose Delete.

5. Confirm deletion
To confirm deletion, enter the name of the bucket in the text input field and choose Delete bucket.

Congratulations!
You have backed up your first file to the cloud by creating an HAQM S3 bucket and uploading your file as an S3 object. HAQM S3 is designed for 99.999999999% durability to help ensure that your data is always available when you want it. You’ve also learned how to retrieve your backed up file and how to delete the file and bucket.