Skip to content

hrmstockdale/AWS-S3-learn-to-store

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

AWS-S3-learn-to-store

AWS

S3
Node.js SDK
IAM

Contents returned from Bucket

cliResponse

Why?

  • To better understand Amazon's object storage system accessible via internet, cli & REST/SOAP APIs.
  • As an intro to AWS SDKs

What?

  • S3 (Simple Storage System) can be plainly understood as an object storage system.
  • S3 stores & protects assets for websites, apps, IoT devices, analytics etc
  • S3 uses Buckets which are roughly equivalent to folders
  • Inside of a Bucket is data for retrieval - in this example I retrieved a copy of my CV (henryStockdale.pdf) from a Bucket (first-bucket-test1)

Important lessons learnt

  • AWS IAM: Identity and Access Management

  • IAM is broken down into the following sections

    • Groups
    • Users
    • Roles
    • Policies
  • Best Practise dictates definining permission on the Group level and affording said permission to inidividual Users by adding the latter to the former.

  • Setting up IAM in this way, a User profile was made inheriting from its group the requisite permissions to access s3 Buckets.

  • Both accessKeyId and secretAccessKey were stored as environment variables on my machine.

About

Retrieving the contents of an S3 Bucket using Node.js SDK

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published