Introduction to S3:
Table of Contents
- S3 full form Simple Storage Service.
- Amazon S3’s main role is to store and protect any amount of data.
- We can store any kind of data format into Amazon S3 and access it from the web directly.
- It is object storage with scalability, security, and performance.
- REPLICATE S3 BUCKET AND KEEP BACKUP
Creating an S3 bucket
STEP 1:
- Login into AWS Console
- Go to services and search for “S3”.
Fig 2.0: Showing services page
STEP 2:
- Go to the S3 page and click on “buckets”.
- Then click on “Create Bucket”.
Fig 2.2: Amazon S3 page
STEP 3:
- Give bucket name as “suggestcloud”
NOTE: The name of the bucket should be unique of all buckets in AWS S3.
- Select region “us-east-1”.
- Enable “versioning”.
- Then click on “Create bucket”.
Fig 2.3: Creating an S3 bucket
Replication of S3 bucket
STEP 1:
- Click on the created bucket.
- We will get different options to click on “management” among them.
Fig 2.5: Overview of our bucket
STEP 2:
- In management, we will different options.
- Click on “Replication”.
- Then click on “Get Started”.
Fig 2.6: Management options of the bucket
STEP 3:
- In Set source, we have two options “entire bucket” and “prefix or tags”.
- Here I choose “Entire Bucket” to replicate.
- We can choose prefix and tags when we want to replicate an object with specified “tags or prefix”.
Fig 2.7: Page showing replication rule
STEP 3:
- Here we have to specify in which bucket we want to copy the objects of “suggestcloud”.
- Click on “Create new bucket”.
- Destination bucket name “suggestcloud123”
- Region as “US East (N.Virginia).
- Then click on “next”.
Fig 2.8: Creating Destination bucket
STEP 4:
- Here we are going to create a new IAM role
- If we click on “Create new role” AWS automatically creating the role.
- Click on “enable”.
- Then click on “next”.
Fig 2.9: Creating an IAM role for Designation rule
STEP 5:
- See the review of both buckets.
- Then click on “save”.
Fig 2.10: Review the Replication rule
Fig 2.11: Replication updated successfully
KEEP BACKUP OF OUR BUCKET
STEP 1:
- Click on source bucket
- Click on file upload and select file.
- Then click on “next”.
Fig 2.12: uploading file source bucket
STEP 2:
- Go to the designation bucket and see whether our file is uploaded or not which we uploaded in source bucket.
- Our file is successfully uploaded.
Fig 2.13: Replication is done in Designation file
STEP 3:
- Delete the file in the source bucket.
- Select the file and click on the “delete”.
Fig 2.14: Deleting the file in the source bucket
STEP 4:
- Go to destination bucket and see whether our file is there are not.
- File in the destination bucket is still available.
Fig 2.15: Designation bucket still having uploaded file
Fig 2.16: Source bucket is empty
Conclusion:
- Uploading the file in the source bucket will automatically upload in the designation bucket.
- Deleting the file in the source bucket will not be affected by the designation bucket.
- REPLICATE S3 BUCKET AND KEEP BACKUP
- Here the uploaded file is kept backup in the designation bucket.