Lab 7: To Configure Amazon Simple Storage Service (Amazon S3)
Lab 7: To Configure Amazon Simple Storage Service (Amazon S3)
Objective: To configure and AWS S3 Service
Topology:
Pre-Requites:
User Should have AWS Account ,or IAM user with AmazonS3fullaccess
To Configure S3 with Following Task:
Sign up For Amazon S3
Create a Bucket
Add an Object to a bucket
Add an folder to Bucket
view an object
Move an object
Delete an object and bucket
To delete a bucket
Hosting a static website aon Amazon S3
AWS user to control S3
1.To create S3 bucket for storing object that is files and folders
Open AWS Console
Select "Storage" Service
click on S3
on Amazon S3 page
Click on Create Bucket
On"Create Bucket-Select a Bucket Name and Region "Box
Provide Following values
Bucket Name------------>Saleshydbucket
Region-------------------->Oregon
Note:A bucket name in region must containonly lower case characters and should be unique in entire
Amazon bucket names from all the Region.
Verify that bucket is created
To upload files of any type
Right click in empty space ,select upload
Note:5GB can be uploaded
It will be charged if crossed free tier usage.
Click on created bucket
Click on Add files
In the upload Wizard
Click on Add files
Select Some txt,pdf,video files
Click on "Start upload"button
Verify that the file got uploaded
Select the files.click on properties on Right panel,
Click on the link
Verfication:Cannot access due to lack of permission
To allow users to download .or view give permission
Select,permission tag
Click on plus Radio button For Add more Permissions
Drop Down Grantee Button
Select Everyone to make it public
Enable the Check box to open/Download
Enable the check Box to view Permission
Enable the check Box Edit view Permission
Click save button
Verify file is accessible
2.To copy or move files from one bucket to another.
Select the file from Bucket or Folder ,right click,
now select copy/cut
2.2 select the bucket or folder ,where you want to paste
click on the Bucket -------------->finshydbucet1
Click on paste
Verify that the file copied in another bucket i.e.,, finshydbucet1
3.To delete a file from a bucket
Right Click on it,select Delete
To delete bucket
Select the bucket,right click select Delete Bucket
To Delete Bucket
provide Exact bucket name
Click on Delete button
verify that the bucket finshydbucet1 is deleted
4.To Host a static website using Amazon S3 Bucket
To Host a static website using Amazon S3 Bucket
open AWS Console
Select storage
Click on S3 service
Click on "Create bucket"
On "create a bucket-select a Bucket Name and Region"Page
Provide Following values for
Bucket Name------------------->www.cloudskillhyd.com
Region -------------------------->orgeon
Click on Create button
Verify Bucket got created
upload all website contents in this bucket
select the bucket and click on properties button
On the Properties panel
click Static website Hosting
Drag Down
Select the enable website hosting
Provide following values for
index Document box ------------>index.html
Error Document box-------------->404.html
click on save Button
Note down the endpoint
2.To add a bucket policy that makes your bucket content publicly available
in the bucket properties,click on permission
Click on Add Bucket policy.
Copy the following bucket policy,and then paste it in bucket policy Editor.
Click Save button
verify your Website
Click on Endpoint under static website Hosting
Verify the website which is coming from S3 Bucket



































Comments
Post a Comment