CCL Exp 6
CCL Exp 6
CLASS: C24
ROLL NO: 2103134
EXPERIMENT NO. 06
Cloud Storage:
Cloud storage is a service model in which data is maintained,
managed, and backed up remotely and made available to users over
a network (typically the internet). The data is stored on multiple
virtual servers, typically hosted by a third-party provider, ensuring
redundancy and availability. Cloud storage eliminates the need for
users to maintain their own physical storage infrastructure, reducing
costs and complexity.
Limitations:
- Security Concerns: Data stored in the cloud may be vulnerable to
security breaches.
- internet Dependence: Requires a stable internet connection for
access.
- Data Portability: Moving large amounts of data in and out of the
cloud can be time-consuming.
- Vendor Lock-in: Users may be tied to a specific vendor's ecosystem,
making it challenging to switch providers.
Types of Storage:
1. *Object Storage:* Stores data as objects, each containing data,
metadata, and a unique identifier. Object storage is highly scalable
and is often used for storing unstructured data, such as photos,
videos, and documents.
2. *Block Storage:* Stores data in fixed-sized blocks and is commonly
used in storage area network (SAN) environments. Block storage is
ideal for applications that require high-performance storage, such as
databases and virtual machines.
3. *File Storage:* Stores data in a hierarchical structure and is
commonly used in network-attached storage (NAS) environments.
File storage is suitable for storing files and documents that need to
be accessed by multiple users or applications.
Implementation:
Step-1: click on create bucket
Step-12: Enable the radio button and specify the file name in Index
document which you have added in S3 Scroll down and save the
changes at bottom right Following screen will appear
Step-13: Click on Permissions Tab
Step-14: In bucket policy click on Edit option
Step 15- after clicking on edit button paste the following code in
bucket policy
{
"Version": "2012-10-17", "Statement": [
{
"Sid": "PublicReadGetObject", "Effect": "Allow",
"Principal": "*",
"Action": [
"s3:GetObject" ],
"Resource": [ "arn:aws:s3:::Bucket-Name/*"
]}
]}
Note-Make sure that you add your bucket name in the code above
Scroll down and click on Save Changes button
Step-16: open your html file and click on Object URL
Step-17: Now for delete files click on checkbox of your file and then
click on Delete Button Write permanently delete and click on delete
object button Now click on close button
Step-18: now come to Amazon S3 tab and select your bucket and
then click on delete button Write down your bucket name in delete
bucket tab and click on delete button at bottom right You can see
that the bucket is deleted
Conclusion:
Thus we have successfully implemented the aws services by
uploading files to the cloud and creating a static web page and
configuring it into our cloud database.