S3 Cheat Sheet
AWS S3 Cheat Sheet
1. S3 Full Form
-
S3 = Simple Storage Service
2. S3 Bucket Rules
-
Name must be 2–63 characters long.
-
Can contain lowercase letters, numbers, hyphens (-), and ampersands (&).
-
Must begin and end with a letter or number.
-
No spaces allowed anywhere.
-
Name cannot be in the form of an IP address (e.g., 192.168.1.1).
3. Ways to Upload Files
-
AWS Management Console (GUI) – drag & drop files.
-
AWS CLI –
aws s3 cp file s3://bucket-name/. -
AWS SDKs – programmatically via Python, Java, Node.js, etc.
-
API – direct REST API calls.
4. Versioning
-
Purpose: Keep multiple versions of objects for backup, recovery, and audit.
-
Enabled: All versions are saved; previous versions can be restored.
-
Suspended: No new versions are created; old versions remain.
5. Presigned URL
-
Definition: Temporary URL granting access to private S3 objects.
-
Uses:
-
Temporary download or upload access
-
Secure file sharing without AWS credentials
-
Direct upload from clients to S3
-
Controlled expiration time
-
-
Creation (GUI):
-
Go to S3 Console → Bucket → Object → Share → Presigned URL
-
Set expiry time → Copy & share the URL
-
Comments
Post a Comment