Docsity
Docsity

Prepare for your exams
Prepare for your exams

Study with the several resources on Docsity


Earn points to download
Earn points to download

Earn points by helping other students or get them with a premium plan


Guidelines and tips
Guidelines and tips

Hosting Static Websites on Amazon S3: Versioning, Replication, and More, Assignments of Web Application Development

This assignment guides students through the process of hosting a static website on amazon s3, covering key concepts like versioning, data replication, transfer acceleration, and lifecycle policies. It provides practical steps and demonstrations for implementing these features within the aws environment. The assignment is suitable for students learning about cloud computing and web development.

Typology: Assignments

2020/2021

Available from 02/02/2025

the-manku-store
the-manku-store 🇮🇳

8 documents

1 / 21

Toggle sidebar

This page cannot be seen from the preview

Don't miss anything!

bg1
1
CLOUD COMPUTING: ASSIGNMENT 2
MAYANK SONI, AU17B1007
Task-1: Hosting a Static Website on Amazon S3
What is Amazon S3?
Features of Amazon S3
Advantages of using Amazon S3
Amazon Simple Storage Service is storage for the Internet. It is designed to make web-scale computing
easier for developers. 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. It gives any developer access to the same
highly scalable, reliable, fast, inexpensive data storage infrastructure that Amazon uses to run its own
global network of web sites. The service aims to maximize benefits of scale and to pass those benefits on
to developers.
Amazon S3 provides the following features:
- Designed and built to simplify functions.
- Enhances Security.
- Reliable and Durable Data Storage.
- Integration.
- Scalability.
- Migration of Data from Cloud.
Amazon S3 is intentionally built with a minimal feature set that focuses on simplicity and robustness.
Following are some of the advantages of using Amazon S3:
-Creating buckets – Create and name a bucket that stores data. Buckets are the fundamental containers in
Amazon S3 for data storage.
-Storing data – Store an infinite amount of data in a bucket. Upload as many objects as you like into an
Amazon S3 bucket. Each object can contain up to 5 TB of data. Each object is stored and retrieved using a
unique developer-assigned key.
-Downloading data – Download your data or enable others to do so. Download your data anytime you like,
or allow others to do the same.
-Permissions – Grant or deny access to others who want to upload or download data into your Amazon S3
bucket. Grant upload and download permissions to three types of users. Authentication mechanisms can
help keep data secure from unauthorized access.
-Standard interfaces – Use standards-based REST and SOAP interfaces designed to work with any internet
development toolkit.
Problem Statement: Implement, manage, and secure storage with shared access over cloud.
Demonstration
pf3
pf4
pf5
pf8
pf9
pfa
pfd
pfe
pff
pf12
pf13
pf14
pf15

Partial preview of the text

Download Hosting Static Websites on Amazon S3: Versioning, Replication, and More and more Assignments Web Application Development in PDF only on Docsity!

CLOUD COMPUTING: ASSIGNMENT 2

MAYANK SONI, AU17B

Task-1: Hosting a Static Website on Amazon S

**- What is Amazon S3?

  • Features of Amazon S
  • Advantages of using Amazon S** Amazon Simple Storage Service is storage for the Internet. It is designed to make web-scale computing easier for developers. 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. It gives any developer access to the same highly scalable, reliable, fast, inexpensive data storage infrastructure that Amazon uses to run its own global network of web sites. The service aims to maximize benefits of scale and to pass those benefits on to developers. Amazon S3 provides the following features:
  • Designed and built to simplify functions.
  • Enhances Security.
  • Reliable and Durable Data Storage.
  • Integration.
  • Scalability.
  • Migration of Data from Cloud. Amazon S3 is intentionally built with a minimal feature set that focuses on simplicity and robustness. Following are some of the advantages of using Amazon S3:
  • Creating buckets – Create and name a bucket that stores data. Buckets are the fundamental containers in Amazon S3 for data storage.
  • Storing data – Store an infinite amount of data in a bucket. Upload as many objects as you like into an Amazon S3 bucket. Each object can contain up to 5 TB of data. Each object is stored and retrieved using a unique developer-assigned key.
  • Downloading data – Download your data or enable others to do so. Download your data anytime you like, or allow others to do the same.
  • Permissions – Grant or deny access to others who want to upload or download data into your Amazon S bucket. Grant upload and download permissions to three types of users. Authentication mechanisms can help keep data secure from unauthorized access.
  • Standard interfaces – Use standards-based REST and SOAP interfaces designed to work with any internet development toolkit. Problem Statement: Implement, manage, and secure storage with shared access over cloud. - Demonstration
  • Under AWS console navigate and S3 and hit create bucket.
  • Provide name and region.
  • After configuring review it and hit create bucket.
  • Under permissions go to block public access.
  • Unchecked all the boxes.
  • Confirm your action and hit confirm
  • Under permissions go to bucket policy.
  • Go to policy generator.
  • Copy the generated policy.
  • Add the files
  • Review the uploads.
  • Hit upload.
  • Files uploaded inside the bucket and ready to be hosted.
  • Use object URL and website is hosted successfully.
  • Enable and save.
  • Now the files have version ID.

**- Replicating data in S

  • Why use replication.** Replication enables automatic, asynchronous copying of objects across Amazon S3 buckets. Buckets that are configured for object replication can be owned by the same AWS account or by different accounts. To enable object replication, you add a replication configuration to your source bucket. The minimum configuration must provide the following:
  • The destination bucket where you user Amazon S3 to replicate objects
  • An AWS Identity and Access Management (IAM) role that Amazon S3 can assume to replicate objects on your behalf Replication can help you do the following:
  • Replicate objects while retaining metadata
  • Replicate objects into different storage classes
  • Maintain object copies under different ownership
  • Replicate objects within 15 minutes Task-3: Replicating data across regions - Demonstration
    • Start with creating destination bucket.
  • Under source bucket we to go management.
  • Under management go replication and add rules.
  • Setting source.
  • Providing destination bucket.
  • Configuring rule options.
  • After reviewing save it.

**- What is S3 transfer acceleration

  • Why use Amazon S3 Transfer Acceleration
  • Benefits of Amazon S3 Transfer Acceleration** Amazon S3 Transfer Acceleration enables fast, easy, and secure transfers of files over long distances between your client and an S3 bucket. Transfer Acceleration takes advantage of Amazon Cloud-front’s globally distributed edge locations. As the data arrives at an edge location, data is routed to Amazon S over an optimized network path.
  • You have customers that upload to a centralized bucket from all over the world.
  • You transfer gigabytes to terabytes of data on a regular basis across continents.
  • You are unable to utilize all of your available bandwidth over the Internet when uploading to Amazon S3.
  • Move data faster over long distances
  • Reduce network variability
  • Shorten the distance to S
  • Maximize bandwidth utilization Task-4: S3 Transfer acceleration
  • To enable transfer acceleration go to properties under advance settings
  • Lifecycle policy **- When to use lifecycle configuration?
  • Supported lifecycle transitions
  • Unsupported lifecycle transitions** An S3 Lifecycle configuration is a set of rules that define actions that Amazon S3 applies to a group of objects. There are two types of actions:
  • Transition actions—Define when objects transition to another storage class. For example, user might choose to transition objects to the S3 Standard-IA storage class 30 days after you created them, or archive objects to the S3 Glacier storage class one year after creating them.
  • Expiration actions—Define when objects expire. Amazon S3 deletes expired objects on your behalf. Define S3 Lifecycle configuration rules for objects that have a well-defined lifecycle. For example:
  • If you upload periodic logs to a bucket, your application might need them for a week or a month. After that, you might want to delete them.
  • Some documents are frequently accessed for a limited period of time. After that, they are infrequently accessed. At some point, you might not need real-time access to them, but your organization or regulations might require you to archive them for a specific period. After that, you can delete them.
  • You might upload some types of data to Amazon S3 primarily for archival purposes. For example, you might archive digital media, financial and healthcare records, raw genomics sequence data, long-term database backups, and data that must be retained for regulatory compliance. With S3 Lifecycle configuration rules, you can tell Amazon S3 to transition objects to less expensive storage classes, or archive or delete them. Amazon S3 supports the following lifecycle transitions between storage classes using an S3 Lifecycle configuration. You can transition from the following:
  • The S3 Standard storage class to any other storage class.
  • Any storage class to the S3 Glacier or S3 Glacier Deep Archive storage classes.
  • The S3 Standard-IA storage class to the S3 Intelligent-Tiering or S3 One Zone-IA storage classes.
  • The S3 Intelligent-Tiering storage class to the S3 One Zone-IA storage class.
  • The S3 Glacier storage class to the S3 Glacier Deep Archive storage class. Amazon S3 does not support any of the following lifecycle transitions. You can’t transition from the following:
  • Any storage class to the S3 Standard storage class.
  • Any storage class to the Reduced Redundancy storage class.
  • The S3 Intelligent-Tiering storage class to the S3 Standard-IA storage class.
  • The S3 One Zone-IA storage class to the S3 Standard-IA or S3 Intelligent-Tiering storage classes. Task-5: Transfer and retrieve data through lifecycle policy - Demonstration
  • main.py File
  • config.py File Task-6: Upload a file to AWS S3 through a Website
  • index.html File
  • Landing page with feature of uploading.