AWS Builder Center
Your First Amazon S3 Bucket: Upload, Download, and Clean Up

Your First Amazon S3 Bucket: Upload, Download, and Clean Up

Learn buckets, objects, and keys by storing one text file in Amazon S3. Follow the console steps and keep the file private throughout.

One file is enough to learn the basics

Your first cloud exercise can be small: put a text file in Amazon S3, download it, and remove the resources afterward.
By completing that cycle, you encounter the essential ideas behind object storage without needing to build an application.
You need an AWS account and permission to create a bucket and work with its objects. This exercise can incur storage, request, and applicable transfer charges; check the pricing or credits that apply to your account.

Three words to understand first

Term
Meaning
Example
Bucket
A container for objects
A bucket created for this exercise
Object
Stored data together with its metadata
Your uploaded text file
Key
The object's identifier inside its bucket
 hello-cloud.txt 
The bucket and key together tell S3 which stored object you mean.

Step 1: prepare a harmless test file

On your computer, open a text editor and enter:
Hello, cloud!
This is my first Amazon S3 object.
Save the file as  hello-cloud.txt . Use a normal text file rather than a document containing personal information.
Keeping the first example tiny makes it easy to inspect exactly what you uploaded and downloaded.

Step 2: create the bucket

  1. Sign in to the AWS Management Console and open Amazon S3.
  1. Open General purpose buckets and choose Create bucket.
  1. Choose a suitable AWS Region and keep track of it.
  1. For a bucket in the shared global namespace, enter a unique name using lowercase letters, numbers, and hyphens. For example, replace the suffix in  my-first-s3-lab-20261105-a6c2  with your own random characters.
  1. Keep ACLs disabled and Block all public access enabled.
  1. Keep bucket versioning disabled for this simple exercise and retain the default S3-managed encryption setting.
  1. Review the settings and create the bucket.
The example name is a pattern, not a reserved name you can rely on being available. S3 bucket naming has specific rules; if a name is unavailable, choose another valid name.
Expected result: the bucket appears in your bucket list. Opening it shows an empty object list.

Step 3: upload the file

  1. Open your new bucket.
  1. Choose Upload, then Add files.
  1. Select  hello-cloud.txt  from your computer.
  1. Keep the bucket's existing settings and choose Upload.
  1. Wait for the upload success message, then return to the object list.
Expected result:  hello-cloud.txt  appears in the bucket.
The local file was the input to the upload. S3 now stores an object whose key is  hello-cloud.txt .

Step 4: download and check it

Select the object and choose Download. Open the downloaded copy with your text editor.
It should contain the same two lines that you wrote earlier. That gives you a simple check that you retrieved the object you intended.
Downloading creates another copy on your computer. It does not remove the object from S3.

Step 5: understand why the file is still private

This walkthrough used your authenticated console access. It did not grant everyone on the internet permission to read the object.
Knowing an object's address is different from having permission to access it. An anonymous attempt to open a private object can be denied, while an authorized download through the console succeeds.
Keep public access blocked for this exercise. A denied anonymous request is not a reason to change that setting.

Step 6: learn what a folder means in S3

In a later exercise, you might place a file under  notes/hello-cloud.txt .
The entire string is the object key. The S3 console can display  notes/  like a folder, but this organization is based on prefixes in object keys.
For your first attempt, the root-level key  hello-cloud.txt  keeps the example straightforward.

Step 7: clean up your exercise

After checking the download:
  1. Select the exercise object and choose Delete.
  1. Verify that the deletion list contains only your test object, then enter the confirmation requested by the console.
  1. Return to the bucket list.
  1. Select your now-empty exercise bucket and choose Delete.
  1. Confirm the bucket name requested by the console.
Deletion is permanent in this versioning-disabled exercise. Keep your local copy if you want to retain the text.

If something does not work

What you see
What to check
The bucket name is unavailable
Choose a different valid name
An upload or download is denied
Confirm your account's permissions with its administrator
The object list is empty
Check the bucket name, upload result, and current prefix
An anonymous link is denied
The exercise intentionally keeps the object private
You have now followed the complete life of a small S3 object: prepare, upload, retrieve, and delete.
Discussion: What would you try storing next: an image, an application export, or a backup file?

Further reading

Any opinions in this article are those of the individual author and may not reflect the opinions of AWS.
Enjoyed reading this content? Let the author know!

Your likes, comments, shares, and saves help creators reach more builders.

Loading recommendations

Loading article