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

  1. AWS Management Console (GUI) – drag & drop files.

  2. AWS CLIaws s3 cp file s3://bucket-name/.

  3. AWS SDKs – programmatically via Python, Java, Node.js, etc.

  4. 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):

    1. Go to S3 Console → Bucket → Object → Share → Presigned URL

    2. Set expiry time → Copy & share the URL

Comments

Popular posts from this blog

Managing Amazon EBS Volumes and Snapshots Across Regions

Git for Beginners: Complete Guide from Installation to First Push on GitHub

AWS - Amazon Web Services