Welcome to the Amazon S3 tutorial! S3 (Simple Storage Service) is a scalable object storage service by AWS that allows you to store and retrieve any amount of data. Let's walk through the basics.
📦 Step-by-Step Guide
1. Install AWS CLI
- Download and install the AWS Command Line Interface for your OS.
- Configure your credentials using
aws configure
:AWS Access Key ID: YOUR_ACCESS_KEY AWS Secret Access Key: YOUR_SECRET_KEY Default region: us-east-1 Default output format: json
2. Create an S3 Bucket
- Use the CLI to create a bucket:
aws s3api create-bucket --bucket my-unique-bucket-name --region us-east-1
- 📌 Note: Bucket names must be globally unique.
3. Upload Files
- Upload a file with:
aws s3 cp local-file.txt s3://my-unique-bucket-name/
- You can also use
aws s3 sync
for directory synchronization.
4. Download Files
- Retrieve files using:
aws s3 cp s3://my-unique-bucket-name/remote-file.txt .
5. Delete Files
- Remove files with:
aws s3 rm s3://my-unique-bucket-name/remote-file.txt
📘 Expand Your Knowledge
For advanced features like versioning or IAM policies, check out our Advanced S3 Features Tutorial.
Let me know if you'd like to explore specific use cases! 🚀