Introduction (Bucket Cross-Region Replication)
Table of Contents
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.
Fig. AWS management console.
- Click on S3 services.
Fig. Services page.
-
S3 page will appear.
Fig. S3 dashboard page.
- Now we have to create a bucket by clicking on Create Bucket.
Fig. Bucket creation page.
- Give Bucket Name.
- Add Region.
- Click on Next.
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.
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.
Fig. Creation page.
- Click on Create Bucket.
Fig. The bucket has created.
Giving Version to Bucket:
- Click on Created bucket rohituser1.
Fig. Created Bucket page.
- Click on properties.
Fig. Shows properties page.
- Click on versioning.
Fig. Shows versioning.
- Now enable the version.
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.
Fig. Shows the Upload page.
- Click on Add File.
Fig. Shows Uploaded File.
- Click on Next.
Fig. Giving Permissions to the File.
- We can give Permissions to the file which can give access to others.
- Click on Next.
Fig. Set the properties page.
- Give storage class as Standard.
- Click on Next.
Fig. Review page.
- We can see the details which we gave to the file.
- Click on Upload.
Fig. shows uploaded File.
- To check whether the uploaded file is correct, click on IMGL7622.jpg.
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.
Fig. shows source bucket.
- Click on bucket rohituser1.
Fig. shows bucket page.
- Click on Managements.
Fig. shows the Management page.
- Click on Replication.
Fig. Replication page.
- Click on Get Started.
Fig. Cross-region creation page.
- Click on Next.
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.
Fig. Configuration page.
- Add IAM role (create a new rule).
- Give Rule Name.
- Next Status Enable.
- Click on Next.
Fig. Review page.
- If you want to review the details we can change.
- Click on Save.
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.
Fig. Shows a backup file.
- Upload a file in the destination bucket.
- Click on Upload.
Fig. Add the file page.
- Click on the Add file.
- Upload a file and click on Next.
Fig. Shows file uploaded.
- Now let’s check whether this file is uploaded in the source file or not.
- Go to the source bucket.
Fig. Shows source bucket.
- Click on rohituser1.
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.