AWS -Introduction to Simple Storage Service(S3)âââConsole & Command Line Interface (CLI)
AWS -Introduction to Simple Storage Service(S3) — Console & Command Line Interface (CLI)
Amazon S3 has a simple web services interface that you can use to store and retrieve any amount of data, at any time, from anywhere on the web.
Pre-requisites :
- Basic Knowledge of Amazon Simple Storage Service (S3)
- Need AWS account with internet connection.
- Have AWS account or can sign in using Free Tier of AWS.
- Click on services and Go to S3 > Create Bucket > Fill Bucket Name > Select Region > Enabled ACL > untick block all public access > enable the acknowledgement > Click on Create Bucket.

2. Open Bucket which you created > Click Upload > Add Files/Folders > Enable Bucket Versioning > Go to Permissions and Tick Grant public-read access to enable public access of image > Go to properties and Select relevant storage Classes >Click on upload.

3. Click on File and open Object URL and paste it in any browser and you� ��ll be able to see file.
Creating and uploading S3 Buckets/Files ( CLI ) :
- Launch VPC and EC2 in with atleast one public Cloud and open Extension SSH
- Now, use Below commands for installing CLI in SSH Shell
3. Go to IAM Roles > Create Users > User Credentials > Security Credentials > Create access key (Inside you'll get access key ID & Secret access key ID) > Copy it
4. Go to CLI and type ifconfigure and fill details Access Key ID, Secret Access Key ID , Zone ( us east-1) and Format As JSON.
5. To Create Bucket in S3 follow below commands :

5. Go to S3 and you can see that the Bucket is successfully created.
Points To Remember :
- S3 is a Global Service but Bucket is a Regional resource.
S3 url (folder) : https://bucketname.s3.region.amazonaws.com/foldername/objectname
S3 url (file) : https://bucketname.s3.region.amazonaws.com/objectname
2. Latency is the delay between a user's action and a web application's response to that action For example : ping google.com
3. Data lifecycle :
Standard : frequent access data as in accessing data on daily basis.
Standard-IA : infrequent access data as in accessing once in a 6 months.
Intelligent Tiering : According to you accessing frequenc y it'll Automatically sets data lifecycle.
Glacier/Deep Glacier : Coma/Almost dead as in accessing once in many years.
4. Bucket Versioning : It creates multiple variants of objects
For More details on Terminologies or Hosting Website using S3 you can visit here.
AWS -Introduction to Simple Storage Service(S3) — Console & Command Line Interface (CLI) was originally published in Towards AWS on Medium, where people are continuing the conversation by highlighting and responding to this story.
Comments
Post a Comment