Fina Laws
Fina Laws
1.INTRODUCTION
AWS means Amazon Web Services that is used by millions, and to get the answer to
this question, we must know that AWS is a cloud provider. It is a safe cloud services platform
that offers almost all that a business requires to develop sophisticated applications with
reliability, scalability, and flexibility. It is a model for billing generally referred to as “pay-as-
you-go,” having no upfront or capital cost. Amazon offers almost 100 services based on-
demand, and the list has been rising daily.
Operation is almost immediately, and it’s accessible with reduced setup. To master
AWS is not all about the online building of sites. The service affords developers access to an
interconnected set of attributes offering calculated database storage, power, content delivery,
and an increasing portfolio of connected functionality. Organizations around the globe use
AWS to develop and scale. Cloud computing has come to remain, and the available solutions
from AWS are fast-tracking its development.
1|Page
PDA COLLEGE OF ENGINEERING INTERNSHIP REPORT
Overview of AWS
Cloud computing is now an essential part of all businesses in every industry. Amazon
Web Services is a prevalent form that increases efficiency while assisting several business
practices. Dating back to the 2000s, organizations depended absolutely on servers that are
purchased servers. In contrast, such servers had functions that are limited with steep prices,
including a server that is functioning requiring numerous validations.
The more business keeps experiencing growth, the more optimization practices and
servers are needed. Getting such items showed unproductively and at times excessively costly.
The benefits of Amazon Web Services have been the answer to many problems. Organizations
that use AWS have instantly available servers; also, AWS offers various improved storage
options, workloads, and enhanced security measures.
2|Page
PDA COLLEGE OF ENGINEERING INTERNSHIP REPORT
2.HISTORY
Amazon Web Services was launched in 2002. The company intended to sell the
infrastructure that is not in use as a service or offering it to customers, wherein the purpose was
met enthusiastically. Amazon had its first AWS product launched in the year 2006. After four
years, in the year 2012, Amazon had a huge occasion to gather customer input concerning
AWS. To date, the organization continues to hold similar events, like Reinvent, that lets
customers share feedback concerning AWS.
In 2015, Amazon publicized that the revenue of AWS has amounted to $7.8 billion.
From then and 2016, measures had been launched by AWS aiding customers to migrate their
services to AWS. Such actions, including the growing and appreciating features of AWS, made
further economic growth. In the year 2016, Amazon’s revenue augmented to $12.2 billion in
2016. Presently, AWS provides customers with 160 products and services. The number is liable
to increase, owing to the rate at which Amazon builds upon and fine-tunes AWS.
3|Page
PDA COLLEGE OF ENGINEERING INTERNSHIP REPORT
The number of organizations under the umbrella of AWS via IT environments is more
like assessing globally successful organizations. Using AWS, Adobe provides multi-terabyte
working environments accessible by its customers by integrating the system using AWS Cloud.
Adobe focuses on operating and organizing its software rather than putting effort to manage
and deploy the infrastructure.
Airbnb, an online connected vacation rental marketplace for property owners and
explorers to connect, sustains an enormous infrastructure in Amazon Web Services while using
almost all accessible services. Autodesk is developing software for the entertainment
industries, engineering, and design. With the use of services such as Amazon S3 and Amazon
RDS, Autodesk can increase its tools for learning machines rather than spending much time on
infrastructure management.
America Online (AOL) uses AWS to close data centers, economize, and withdraw
almost 14,000 co-located and in-house servers. BitDefender is a firm that has internet security
software whereby its software portfolio comprises anti-spyware and antivirus products. While
using Amazon EC2 that is running various hundred cases handling data of about five terabytes.
It also uses a feature known as Elastic Load Balancer to balance the load connection coming
into those occurrences across accessibility zones, providing unified service delivery globally.
BMW uses AWS for its novel application for car connection, taking sensor data from
BMW 7-series cars to enable drivers to assess map information dynamically. With Amazon
Web Services' use to distribute cloud-based services like office imaging products and mobile
print, Canon's imaging products division tends to benefit from quicker deployment times,
global accessibility, and lower cost. Comcase uses AWS, the largest cable company globally
and the United States' leading internet service provider for scalable hybrid infrastructure and
flexibility.
Though more of the European Space Agency's work uses satellites, few of its data
storage and computing infrastructure are developed on AWS. The Guardian newspaper vastly
uses AWS services to control an analytic dashboard primarily used by editors to view trending
stories in recent times. Amongst the world's leading business for news organizations is the
Financial Times and uses Amazon Redshift for performing its analysis. Redshift can perform
its analysis as fast as possible; some even thought it was malfunctioning. They were
accustomed to the overnight running of queries. The Times, therefore, discovered that results
4|Page
PDA COLLEGE OF ENGINEERING INTERNSHIP REPORT
were accurate, although much faster. General Electric (GE) is presently migrating over 9,000
workloads and 300 disparate systems of ERP – to Amazon Web Services by reducing its data
center footprint from 34 to four by 2021. The list is endless, for example, McDonald's,
Kellogg's, NASA, Howard Medical School, to mention but a few are profiting from AWS.
According to various reports from companies, principal aims for not only choosing
AWS somewhat depending on it for vital measures of their IT infrastructure:
1. Security and durability :- Amazon Web Services encodes various data, presenting
end-to-end confidentiality, including storage.
4. Ease of Use :- Amazon Web Services is easy to use. Designers can quickly organize
and host apps, construct a novel, or even migrate existing apps.
6. Cost savings :- Organizations pay for the computing power, including usage of
resources and storage, using no lasting commitments.
5|Page
PDA COLLEGE OF ENGINEERING INTERNSHIP REPORT
Various services available on AWS cannot be overemphasized; they are security, tools
development, migration, custom engagement, storage, and many more. Below are some of the
services that are commonly used by Amazon Web Services:
1. Amazon EC2 :- EC2 can be resettable due to the user's necessity, as long as a secured
computing capacity is available in the cloud. For example, in situations whereby web traffic
changes, this facility can increase its atmosphere, behind the scenes, to three occurrences when
necessary and then contract to a single resource when weight reduces.
4. Amazon Lambda :- It enables organizations for code running with no use for server
management and provisioning. It automatically scales little requests for a day to so many for a
second. Organizations pay for the time used for computing and no charges while code isn't
running.
6|Page
PDA COLLEGE OF ENGINEERING INTERNSHIP REPORT
With the quantity of data organizations collect, storing the data seems to be high in demand.
AWS, therefore, helps bring numerous solutions listed below:
● Amazon S3 – With S3, data can be stored and retrieved from anywhere, including IoT
sensors, mobile apps, websites, and others. There's flexibility in data management, security,
and durability for internet storage.
● Amazon Glacier – It's a service for cloud storage meant for storing data for future use,
including long-term backups, highly secure options, and low-cost Glacier.
● Amazon Elastic Block Store (EBS) - EBS offers block store volumes for cases of EC2. It
is a dependable storage volume attached to whichever running instance in a similar accessibility
zone.
● Amazon Elastic File System (EFS): - EFS can be used with the Amazon Web Services
Cloud resources and services. It's scalable and straightforward; it's flexible storing of files for
on-premise resources. Containing an intuitive interface allows users to build and file
configuring systems without troubling the app growth and automatic shrinking when files are
being added or even removed.
7|Page
PDA COLLEGE OF ENGINEERING INTERNSHIP REPORT
6.SERVICES OF AWS
Since its existence, AWS has developed into a vital technological cloud computing. Below are
some essential services offered by AWS:
1. Amazon S3 It is a tool used for backing up the internet and less costly for storage options in
the category of object-storage. The central part of this option is that data stored can be retrieved
from virtually anywhere they are needed.
2. AWS Data Transfer Products As the term suggests, they are collecting data, transferring
data products, and migration that aids the collection of data seamlessly. They can also allow
the monitoring and analysis of data in actual time.
3. Amazon EC2 (Elastic Compute Cloud) It provides a resizable and secured capacity for
computing, depending on your requirements. The service, therefore, is designed to enable web-
scale cloud computing more reachable.
6. Amazon Lambda It's for code running depending on a particular event and manages reliant
resources. You do not need either provisioning servers or operating, and how much is paid
depending on the length of time, it takes in executing your code. It's cost-effective, unlike
services that their charges are according to hourly rates.
7. Route 53 It is a DNS service in the cloud that doesn't need you to keep a separate DNS
account. The aim is to provide a cost-effective and reliable method to route users for businesses
to internet apps.
8|Page
PDA COLLEGE OF ENGINEERING INTERNSHIP REPORT
9|Page
PDA COLLEGE OF ENGINEERING INTERNSHIP REPORT
Below are the distinctive features that make Amazon's AWS a leader in the cloud market
worldwide.
• Improved Security
• Cost-Effectiveness
– Amazon AWS There are other policies available that are valid for a particular
Amazon Web Services. Here is some indication to enable you to comprehend which
Amazon cloud computing cost plan will be paramount for your company.
Save when you Reserve : The suggestion holds specific good services,
including Amazon RDS and Amazon EC2. At this point, the real cost is rightly related
to the discount accumulated, i.e., if you choose the pay, the total price up-front, then
you'll get the extreme discount and vice-versa.
10 | P a g e
PDA COLLEGE OF ENGINEERING INTERNSHIP REPORT
Pay Less by Using More : For particular AWS services like S3 or data transfer
OUT from EC2, the more the usage, the less you pay per Gigabyte (GB). These are
volume-based discounts that enable you to profit in the long run.
AWS Free Tier : Upon creating a new account, over 60 AWS services can be
accessed and freely offered. Nevertheless, these free offers are subdivided into three
offers depending on the form of product an organization intends to use.
Amazon Web Services allows you to experiment, innovate and iterate speedily
via a huge cloud global infrastructure. Therefore, in leveraging scalability, Amazon
Web Service can effortlessly manage the increase of workload by assigning the
resources as a result of the demand, that also within minutes. New applications can as
well be used instead of waiting for months for hardware while avoiding resource
provisioning upfront for projects with lifetimes that are short and variable rates
consumption.
11 | P a g e
PDA COLLEGE OF ENGINEERING INTERNSHIP REPORT
Project description
PROJECT 1
HOST STATIC WEBSITE USING AWS S3
AWS Simple Storage Service (S3) from the aforementioned list, S3, is the object storage
service provided by AWS. It is probably the most commonly used, go-to storage service for
AWS users given the features like extremely high availability, security, and simple
connection to other AWS Services.
An Amazon S3 bucket can be set up to operate similarly to a website. This section
illustrates how to host a website using Amazon S3. There are mainly 7 steps to hosting a
static website using Amazon Web Service(AWS) S3.
12 | P a g e
PDA COLLEGE OF ENGINEERING INTERNSHIP REPORT
13 | P a g e
PDA COLLEGE OF ENGINEERING INTERNSHIP REPORT
14 | P a g e
PDA COLLEGE OF ENGINEERING INTERNSHIP REPORT
15 | P a g e
PDA COLLEGE OF ENGINEERING INTERNSHIP REPORT
OUTPUT:
SIMPLE CODE:
16 | P a g e
PDA COLLEGE OF ENGINEERING INTERNSHIP REPORT
PROJECT 2
This article will demonstrate how we can create an event-driven architecture using several
AWS services like AWS S3, SQS, Lambda and CloudWatch.
Overview:
To illustrate the event-driven architecture, we’ll build an image processing pipeline for a social
media platform that will enable us to automate the process of resizing images for our app
using Amazon S3, SQS, and Lambda. Event-driven applications create events that are
observable by other services and systems, but the event producer is unaware of which
consumers, if any, are listening. Most Lambda-based applications use a combination of AWS
services for durably storing data and integrating with other systems and services.
You can use the Amazon S3 Event Notifications feature to receive notifications when certain
events happen in your S3 bucket. To enable notifications, add a notification configuration that
17 | P a g e
PDA COLLEGE OF ENGINEERING INTERNSHIP REPORT
identifies the events that you want Amazon S3 to publish. Make sure that it also identifies the
destinations where you want Amazon S3 to send the notifications. You store this
configuration in the notification sub resource that's associated with a bucket.
18 | P a g e
PDA COLLEGE OF ENGINEERING INTERNSHIP REPORT
19 | P a g e
PDA COLLEGE OF ENGINEERING INTERNSHIP REPORT
• S3 Bucket ( media-app-initial-image ):
• Create an Event notification that will publish an event to the SQS queue if any image
is uploaded to the corresponding S3 Bucket.
• Select All object create events as event type
• Go to queue, that you created and Create a event notification.
• Upload the image in the bucket.
20 | P a g e
PDA COLLEGE OF ENGINEERING INTERNSHIP REPORT
2. Add Trigger
Now, add a trigger so that SQS can trigger the lambda function if any new message (image
uploaded) arrives.
21 | P a g e
PDA COLLEGE OF ENGINEERING INTERNSHIP REPORT
IAM Policies
We need to create three distinct IAM policies to give the lambda function the necessary
permissions, which we will create in the following step These policies will allow the function
to:
• Write logs to CloudWatch
• Full access to the S3 buckets that were previously created
• Read-only access to the SQS queue
By creating these policies, we can ensure that the lambda function has the appropriate level of
access to these AWS resources.
Policy 1: WriteCloudWatchLogs
Policy 2: MediaAppBucketAccessPolicy
Policy 3: MediaAppQueueAccessPolicy
If any unexpected result occurs we can check the cloudwatch logs to find out the reason
behind that.
To see CloudWatch Logs → Move to CloudWatch → Log groups
With that, we have successfully created an image process pipeline on AWS using S3, SQS,
Lambda and CloudWatch.
22 | P a g e
PDA COLLEGE OF ENGINEERING INTERNSHIP REPORT
23 | P a g e
PDA COLLEGE OF ENGINEERING INTERNSHIP REPORT
Project 3
The main objective of this project is to deploy a simple web application to the AWS cloud
Let’s Connect
1) Go to https://www.mongodb.com/cloud/atlas
24 | P a g e
PDA COLLEGE OF ENGINEERING INTERNSHIP REPORT
2) Sign in if you have a account or Signup if you haven’t create a account yet.(Try free)
3) Then create a cluster(You can create free cluster if you are a beginner).
Refer Blogify node js application folder where you can find app.js file.Open this blogify
folder in visual studio code and try to connect it with mongodb using the steps shown below
25 | P a g e
PDA COLLEGE OF ENGINEERING INTERNSHIP REPORT
Now go to your MongoDB atlas account and click on Connect and create a MongoDB
user.
Mongodb user is created for this.
Now click on Choose a connection method →Connect your application and copy the string.
Copy this String and paste in your .env file and Replace that password in your string with your
mongodb user password —
Save it
26 | P a g e
PDA COLLEGE OF ENGINEERING INTERNSHIP REPORT
Step 4 — Go to Network access -> Add Ip address -> Allow access from anywhere and confirm
So,this was the complete detailed description of how to Connect mongodb atlas with node.js .
Of course, you need to have a valid AWS account available to code along with this article.
The first step is to go to the AWS Management Console and select Elastic Beanstalk from the
Services menu. Press the ‘Create Application’ button.
Select the Web server environment and give a name to your app.
27 | P a g e
PDA COLLEGE OF ENGINEERING INTERNSHIP REPORT
Choose Managed platform in "Platform type", and Node.js in "Platform", and leave the rest as
it is. Then choose Upload your code in the "Application code" section and upload the zip file.
Then set the version label to 1 and choose Single instance in the "Presets" section and click
Next.
28 | P a g e
PDA COLLEGE OF ENGINEERING INTERNSHIP REPORT
In this section, it is necessary to set up IAM roles. We must create two IAM roles, one for Elastic
Beanstalk and one for EC2
For the service role, select Create and use new service role. It'll automatically create and provide
the required permissions
In order to ssh into your EC2 instance via terminal, create a key-value pair and select it. Skip
this step if you do not wish to log onto EC2.
Create an IAM role with the following permissions and add the role to the ‘EC2 instance profile’
and proceed next.
• AWSElasticBeanstalkWebTier
• AWSElasticBeanstalkWorkerTier
• AWSElasticBeanstalkMulticontainerDocker
29 | P a g e
PDA COLLEGE OF ENGINEERING INTERNSHIP REPORT
Skip this step because as we are using a Mongoose database, so don’t need to do this step.
It’s not necessary to make any changes here unless you need them. If you’re creating this
sample app, leave the fields with their default values. An Amazon Linux machine will be
30 | P a g e
PDA COLLEGE OF ENGINEERING INTERNSHIP REPORT
Add your environment variables and click Next. In the end, examine all your configurations
Now you can see why I spent hours on this process in the first place. Whenever I made a
mistake, I had to wait about 10 to 15 minutes to check the result and redo all the steps above if
31 | P a g e
PDA COLLEGE OF ENGINEERING INTERNSHIP REPORT
anything went wrong. The Elasticated Bean will definitely test your patience, so be calm and
relaxed. When everything is finished, the health will turn green and a domain URL will be
generated.
• First Connect MongoDB with node js application named Blogify using the steps
shown above.
• Here in Node js application named Blogify just add your Connection string in .env file
.Connection string you will get by clicking on Cluster Connect in MongoDb atlas.
• After that Deploy the Node.js application using Elastic Beanstalk using the steps
shown above.
32 | P a g e
PDA COLLEGE OF ENGINEERING INTERNSHIP REPORT
CONCLUSION
Currently, in the marketplace where there's a rise in on-demand services, AWS has
developed a workable solution for business organizations that are searching for inexpensive,
reliable, and scalable cloud computing services. With separate functions in 22 geographical
regions, Amazon Web Services enables firms to manage different services as well as
development, data processing, game development, warehousing, and lots more. Amazon Web
Service, or AWS, is an online platform providing cost-effective, scalable cloud computing
solutions. It offers a range of on-demand operations, such as compute power, content delivery,
database storage, and more, to help enterprises and organizations grow.
A distinguished benefit of AWS is that your business can have access to EC2, which in
turn offers a virtual cluster of computers via the internet. Hence the job of hardware resources
is copied by these much-helpful server farms located across the globe. Any cloud computing
professional can design AWS cloud projects and AWS enterprise projects using these services.
Amazon Elastic Compute Cloud, EC2, enables users to rent virtual computing resources to run
their applications. AWS Lambda is another foundation service for serverless computing.
Irrespective of the fact that you're just starting or already an already established
enterprise, AWS is the best solution that can provide extensive maximum uptime, cost savings,
and continuous support, which is a good return on investment, undeniably.
33 | P a g e
PDA COLLEGE OF ENGINEERING INTERNSHIP REPORT
34 | P a g e