S3 Configuration for EC 1
Step 1: Login to the console screen Link: [Link]
Step 2: To create a bucket, click on S3 under Storage & Content Delivery Link: [Link]
1|Page Documentation by Pugalenthi Iniabarathi
S3 Configuration for EC 1
You will be redirected to the below page once you click on the link
Step 3: Click on Create Bucket and you should be presented with a pop-up asking the name of the Bucket and its Region. Enter the Bucket name and select any one of the region. Click Create once completed. Note: Enter the bucket name as your BITS id
2|Page Documentation by Pugalenthi Iniabarathi
S3 Configuration for EC 1
Step 4: After clicking Create, you should be seeing your bucket and its details.
Step 5: You will have to create two text files with the name as [Link] and [Link]. Before that we need to know our Amazon account number. Link: [Link]
3|Page Documentation by Pugalenthi Iniabarathi
S3 Configuration for EC 1
Step 6: Now we know our Account number. So as prabhu mentioned.
[Link] will have the following lines and ONLY the following lines.
YOUR BITS ID NUMBER YOUR AMAZON ACCOUNT NUMBER
[Link] will be empty.
Step 7: Need to upload the 2 text files that we created into our bucket. Click on Upload in the Bucket info screen. Drag and Drop your two files and click on Start Upload
Once the files are available. Click on Start Upload.
4|Page Documentation by Pugalenthi Iniabarathi
S3 Configuration for EC 1
Step 7: The files that you uploaded will be available on the Left Pane.
Step 8: Adding the Bucket Policy. So whats a bucket policy?
Bucket policies define access rights for Amazon S3 resources. Only a bucket owner can write bucket policies. Click on Permission under the Bucket Properties.
5|Page Documentation by Pugalenthi Iniabarathi
S3 Configuration for EC 1
Step 9: Click on Add Bucket Policy and in the Bucket Policy Editor Screen select New Policy. This is because, First, we will have to grant access to Prabhu to list the objects in our bucket Second, we will have to allow Prabhu to read the contents of [Link] Third, we will have to deny the [Link] to be viewed by Prabhu
Step 10: Clicking on new policy will redirect to AWS Policy Generator. Do as its mentioned in the below screenshot
6|Page Documentation by Pugalenthi Iniabarathi
S3 Configuration for EC 1
Completed: First, we will have to grant access to Prabhu to list the objects in our bucket Amazon Resource Name: arn:aws:s3:::2012hz78228 After clicking on Add Statement, you should be able to see the policy being added. Next is to make the [Link] to be viewable. Do the same again but the Action will be different
Completed: Second, we will have to allow Prabhu to read the contents of [Link]
7|Page Documentation by Pugalenthi Iniabarathi
S3 Configuration for EC 1
Amazon Resource Name: arn:aws:s3:::2012hz78228/[Link]
Next is to make the [Link] to be non viewable. Do the same again but the Effect will be different
Completed: Third, we will have to deny the [Link] to be viewed by Prabhu Amazon Resource Name: arn:aws:s3:::2012hz78228/[Link]
You should be able to see all the principles as mentioned below.
8|Page Documentation by Pugalenthi Iniabarathi
S3 Configuration for EC 1
Step 11: Click on Generate Policy and you will get the Policy JSON statement. Copy the JSON and Paste it in the Bucket Policy Editor. Save it. Save should be successful.
Step 12: Enable Website Hosting. Navigate to your Bucket Properties -> Static Website Hosting and under Index Document type in [Link] and save.
9|Page Documentation by Pugalenthi Iniabarathi
S3 Configuration for EC 1
After you complete the assignment, heres what you need to upload to the academy server. o A text file named against your ID. For example the file name will be [Link] o The file will contain just two lines and NO EXTRA INFORMATION. Bucket URL Amazon account number o For example heres a sample file.
References: [Link] [Link] [Link] [Link]
10 | P a g e D o c u m e n t a t i o n b y P u g a l e n t h i I n i a b a r a t h i
S3 Configuration for EC 1
11 | P a g e D o c u m e n t a t i o n b y P u g a l e n t h i I n i a b a r a t h i