Amazon S3 get started using php sdk-  Part 1

Amazon S3 get started using php sdk- Part 1

Amazon S3 basic concept and terminology

Subscribe to my newsletter and never miss my upcoming articles

Hi Friend šŸ˜Ž.

Do you know what is Amazon S3 ?

In this blog post, we will discuss about Amazon S3 and also use amazon s3 php sdk to upload file to s3 , download file from s3 and delete file from s3 in subsequent posts.

I hope this information can help you šŸ‘.

Ā 

Amazon S3

Amazon S3 stands for Amazon Simple Storage Service.

Used to store and retrieve any amount of data from amazon servers.

Highly scalable. This means you only pay for what you use.

sdk available in many languages like java, php, node.js

s3.png

ā¬†ļø Image credit : aws.amazon.com

Ā 

Basic S3 terminology that we need to know

"Bucket" : A container for object stored in Amazon S3. Every object is contained in a bucket.

"Object" : Every file stored in S3 is an object. Object is stored in bucket.

"Key" : A key is the unique identifier for an object within a bucket. Every object in a bucket has exactly one key. This is similar to concept of a folder. Example- images/photo.jpg - here images is key.

Ā 

Sign up for aws account using this link https://aws.amazon.com/?nc2=h_lg

After signup and log in to aws console go to Services -> S3

image.png

Here we can see a list of all bucket. If this is a new account this will be empty. to create a new bucket you can click on create bucket on top right.

Give a name to your bucket and choose a region that is closest to you. Other settings leave as default.

image.png

So we have created a new bucket. We can upload files to s3 using this web interface also.

PART 2: >> Use PHP AWS SDK for upload file, download file, delete file

Ā 
Share this