Content

                                                  Content How to create an AWS free Account? Lab 1: To launch amazon Linux EC2 instance Lab 2: To Connect to the instance from Linux client Operating System Lab 3:To Launch amazon windows instance Lab 4: Installing apache in EC2 instance Lab 5: Installing Nginx in EC2 instance Lab 6: Changing Host Name Lab 7: Creating a user and making as a sudoer Lab 8:Assigning an Elastic ip Lab 9:Creating ebs,attach and detach the volumn to the instance Lab 10:Creating an S3 Bucket and creating cross replication in another region Lab 11:Load Balancer Lab 12:Two instances with Application Load Balancer Lab 13:Launching two instances with load Balancer Lab:14 Creating Own VPC  Lab 15: Two instances which classic load Balance with own VPC Lab 16:Two instances with Application load Balancer with own VPC Lab 17: Relational Data B...

Lab 10:Creating an S3 Bucket and creating cross replication in another region

                    Lab 10:Creating an S3 Bucket and creating cross replication in another region

What is S3 and why we use it?
It is simple storage service which stores the data as as bucket .You can use S3 to store and retrieve
any amount of data at any time from anywhere on the web.



Some Keywords:
Bucket------------->You can create a bucket to store the data.

Versioning --------------->you can use versioning to preserve ,retrieve ,and restore every version of every
object stored in your in s3 bucket

Webhosting-------------->You can host a static  website in S3.

Cross region replication-------------------> Cross region replication enables automatic,asynchronous copying of objects in different regions.

Lab:Creating a static website hosting and cross replication across regions.

Create a bucket
Click on Create a button



Give a name to bucket 
Note:Bucket name has to be unique across all the buckets
Select the region in which you to create  the bucket



Click on next
Leave all as default



Click on next 
Uncheck all the boxes



click on Next



Click on create bucket 



Bucket created
Select the created bucket and upload the content whatever you need(based on your requrement)



Click on upload
You can add the files by clicking an ad files or u can just drag and drop




You can add text files.
You can add carinary free website template free css template

Download the CSS free template and unzip the files then drag and drop the file to upload
After drag and drop 
click on upload



File uploaded
Select all files go to action
Select make public




Click on make public
Go to properties section
Select static website hosting



Select "Use this bucket to a host website"
Enter index.html
Then click on save button
copy the endpoint and go to the browser and the check the page




Now take the endpoint url and see the page.



you will get a page like this

 Cross Region Replication:

Amazon S3 Cross -Region Replication




Cross -Region Replication enables automatic ,asynchronous copying of objects across buckets in different AWS regions.
Create a destination bucket in which region you want to create the bucket:
Go to the S3 dashboard create the destination bucket.



Click on create bucket
Give  a unique bucket name and select the regions where you want replica of the source bucket



Click on Next



Click on Next



Uncheck the boxes and click on next



Click on create a bucket



Bucket created.
 Enable the versioning option in both the regions



Select the bucket



Click on properties



Click on versioning and enable the option



And save 

Go to source bucket 
Click on Management



And click on replication



Click on get started
Check on box entire bucket
And click on next



Select destination bucket



Then click on Next



Select the Role



Then click on Role



Click on Save



Go to the source bucket and upload a file.




File is uploading 



File got updated
Go to the destionation bucket (replication bucket)



We have a file

Reference:https://www.youtube.com/watch?v=illb31sDu0https://www.youtube.com/watch?v=EMXCIWW0x20

Comments

Popular posts from this blog

Lab 21:Installing docker in instance and build an image

Lab 22:Pushing a docker image to docker hub

Lab 5: Installing Nginx in EC2 instance