CROSS Region replication

Cross-Region Replication of S3 Bucket

Introduction (Bucket Cross-Region Replication)

Simple storage Service (S3): 

  • 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. Bucket Cross-Region Replication explained in this topic.

S3 Bucket:

  • Amazon S3 bucket is a public cloud storage resource available in Amazon Web Services (AWS) Simple Storage Service (S3) an object storage offering.

Bucket Cross-Region Replication (CRR):

  • It is a new feature that automatically replicates data across AWS regions.
  • With CRR every object uploaded to the S3 bucket is automatically replicated to a destination bucket in a different AWS region that you choose.

How to create an S3 bucket:

  • Log in to the AWS Root account.
  • AWS Management console will appear and thereafter go to Services.

 

F:\Screenshots\Screenshot (124).png

Fig. AWS management console.

 

  • Click on S3 services.

F:\Screenshots\Screenshot (126).png

Fig. Services page.

 

  • S3 page will appear.

F:\Screenshots\Screenshot (127).png

Fig. S3 dashboard page.

 

  • Now we have to create a bucket by clicking on Create Bucket.

F:\Screenshots\Screenshot (129).png

Fig. Bucket creation page.

 

  • Give Bucket Name.
  • Add Region.
  • Click on Next.

F:\Screenshots\Screenshot (130).png

Fig. Shows configure option page.

 

  • We can see versioning, server access logging, object-level logging, default encryption.
  • Give Tag to the bucket.
  • Click on Next.

F:\Screenshots\Screenshot (131).png Fig. shows the permission page.

 

 

  • If you want to block public access you can enable Block all public access and if you want to public access Disable Block all public access.
  • I will block public access and then click on Next.

F:\Screenshots\Screenshot (132).png

Fig. Creation page.

 

  • Click on Create Bucket.

F:\Screenshots\Screenshot (133).png

Fig. The bucket has created.

 

Giving Version to Bucket:

  • Click on Created bucket rohituser1.

F:\Screenshots\Screenshot (134).png

Fig. Created Bucket page.

 

  • Click on properties.

F:\Screenshots\Screenshot (135).png

Fig. Shows properties page.

 

F:\Screenshots\Screenshot (136).png

Fig. Shows versioning.

 

  • Now enable the version.

F:\Screenshots\Screenshot (137)_LI.jpg

Fig. Shows Version added to Bucket.

 

  • If we click on Hide the version we can see the latest version on Bucket.
  • If we click on Show the version we can see the version details and previous version details of the Bucket.
  • Now upload one file to the bucket.
  • Click on Upload.

F:\Screenshots\Screenshot (138).png

Fig. Shows the Upload page.

 

  • Click on Add File.

F:\Screenshots\Screenshot (139).png

Fig. Shows Uploaded File.

 

  • Click on Next.

F:\Screenshots\Screenshot (140).png

Fig. Giving Permissions to the File.

 

  • We can give Permissions to the file which can give access to others.
  • Click on Next.

F:\Screenshots\Screenshot (141).png

Fig. Set the properties page.

 

  • Give storage class as Standard.
  • Click on Next.

F:\Screenshots\Screenshot (142).png

Fig. Review page.

 

  • We can see the details which we gave to the file.
  • Click on Upload.

F:\Screenshots\Screenshot (143).png

Fig. shows uploaded File.

 

  • To check whether the uploaded file is correct, click on IMGL7622.jpg.

F:\Screenshots\Screenshot (144).png

Fig. shows the file page.

 

  • We can open, Download, Copy path the file.
  • Click on Open.

Fig. File which we uploaded.

 

  • Now check whether this file got version or not.

Fig. shows a version of the file.

 

How to enable Cross-Region Replication:

  • Go to Source Bucket.

F:\Screenshots\Screenshot (147).png

Fig. shows source bucket.

 

  • Click on bucket rohituser1.

F:\Screenshots\Screenshot (148).png

Fig. shows bucket page.

 

  • Click on Managements.

F:\Screenshots\Screenshot (149).png

Fig. shows the Management page.

 

  • Click on Replication.

F:\Screenshots\Screenshot (150).png

Fig. Replication page.

 

  • Click on Get Started.

F:\Screenshots\Screenshot (151).png

Fig. Cross-region creation page.

 

  • Click on Next.

F:\Screenshots\Screenshot (153).png

Fig. Set destination page.

 

  • Select create a new bucket.
  • Give the name to the new bucket.
  • Select the region where you want to store your data.
  • Click on Next.

F:\Screenshots\Screenshot (154).png

Fig. Configuration page.

 

  • Add IAM role (create a new rule).
  • Give Rule Name.
  • Next Status Enable.
  • Click on Next.

F:\Screenshots\Screenshot (155).png

Fig. Review page.

 

  • If you want to review the details we can change.
  • Click on Save.

F:\Screenshots\Screenshot (156).png Fig. Cross-Region Replication is created.

 

  • Now check whether the destination bucket is created or not.

Fig. shows the Destination Bucket Created.

 

CRR from Destination to Source bucket:

  • Go to Destination bucket rohituser2 that is a back up file.

Fig. Bucket page.

 

  • Click on rohituser2.

F:\Screenshots\Screenshot (158).png

Fig. Shows a backup file.

 

  • Upload a file in the destination bucket.
  • Click on Upload.

F:\Screenshots\Screenshot (160).png

Fig. Add the file page.

 

  • Click on the Add file.
  • Upload a file and click on Next.

F:\Screenshots\Screenshot (162).png

Fig. Shows file uploaded.

 

  • Now let’s check whether this file is uploaded in the source file or not.
  • Go to the source bucket.

F:\Screenshots\Screenshot (163).png

Fig. Shows source bucket.

 

  • Click on rohituser1.

F:\Screenshots\Screenshot (164).png

Fig. shows the source page.

 

  • The file uploaded in the destination bucket was not uploaded in the source bucket.
  • The reason is the file will go from source bucket to destination bucket, the reverse process will not happen.

Conclusion:

Here in Bucket Cross-Region Replication, we came to know how to create a bucket, how to upload data to bucket, how to give versioning. We have also seen S3 is used to store the data and can be retrieved.

Leave a Reply

%d bloggers like this: