Aws Intern
Aws Intern
A report submitted in partial fulfillment of the requirements for the Award of the
Degree of
BACHELOR OF TECHNOLOGY
In
V Vijayendra Prasad
208W1A05C7
Vijayawada 520007
June, 2023
VELAGAPUDI RAMAKRISHNA SIDDHARTHA
ENGINEERING COLLEGE
(Autonomous, Accredited with ‘A+’ grade by NAAC)
Department of Computer Science and Engineering
CERTIFICATE
This is to certify that the Internship report entitled “AWS Cloud Virtual
Internship” being submitted by
in partial fulfillment of the requirements for the award of the degree of BACH-
ELOR OF TECHNOLOGY in COMPUTER SCIENCE AND ENGINEERING,
from May 2023 to July 2023.
i
DECLARATION
I hereby declare that the dissertation entitled “AWS Cloud Virtual Intern-
ship” submitted for the B.Tech Degree is my work and the dissertation has not
formed the basis for the award of any degree, associates, fellowship or any other
similar titles.
ii
ACKNOWLEDGEMENT
iii
INTERNSHIP CERTIFICATE BY AWS ACADEMY
iv
COMPANY PROFILE AND EXTERNAL
GUIDE DETAILS
v
ABSTRACT
vi
Table of Contents
vii
2.4 Amazon EC2 Pricing Options . . . . . . . . . . . . . . . . . . . 22
2.5 Adding a Database Layer . . . . . . . . . . . . . . . . . . . . . 23
2.6 Creating a Network Environment . . . . . . . . . . . . . . . . 23
2.6.1 Creating an AWS networking environment: . . . . . . . . . . 24
2.7 Connecting Networks with AWS . . . . . . . . . . . . . . . . . 24
2.7.1 Connecting to Your Remote Network with AWS Site-to-Site
VPN: . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 24
2.7.2 Connecting to Your Remote Network with AWS Direct Con-
nect: . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 25
2.7.3 Connecting VPCs in AWS with VPC Peering: . . . . . . . . 25
2.8 Securing User Application Access . . . . . . . . . . . . . . . . 25
2.8.1 Account users and IAM: . . . . . . . . . . . . . . . . . . . . 25
2.9 Implementing Elasticity, High Availability, and Monitor-
ing in AWS . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 26
2.9.1 Elasticity . . . . . . . . . . . . . . . . . . . . . . . . . . . . 26
2.9.2 High Avaliability: . . . . . . . . . . . . . . . . . . . . . . . . 27
2.10 Automating Your Architecture . . . . . . . . . . . . . . . . . 27
2.10.1 Automating Your Infrastructure: . . . . . . . . . . . . . . . 28
2.11 Caching Content in AWS . . . . . . . . . . . . . . . . . . . . . . 28
2.11.1 Overview Of Caching: . . . . . . . . . . . . . . . . . . . . . 28
2.11.2 Edge Caching: . . . . . . . . . . . . . . . . . . . . . . . . . . 28
2.11.3 Caching Web Sessions: . . . . . . . . . . . . . . . . . . . . . 29
2.12 Building Decoupled Architectures: . . . . . . . . . . . . . . . . 29
2.12.1 Decoupling Your Architecture: . . . . . . . . . . . . . . . . 29
2.12.2 Decoupling with Amazon SQS: . . . . . . . . . . . . . . . . 29
2.12.3 Decoupling with Amazon SNS: . . . . . . . . . . . . . . . . 29
2.12.4 Sending Messages Between Cloud Applications and On-Premises
with Amazon MQ: . . . . . . . . . . . . . . . . . . . . . . . 30
2.13 Planning for Disaster: . . . . . . . . . . . . . . . . . . . . . . . . 30
2.13.1 Disaster Planning Strategies: . . . . . . . . . . . . . . . . . . 30
2.13.2 Disaster Recovery Patterns: . . . . . . . . . . . . . . . . . . 30
3 Implementation 31
3.1 Aim . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 31
3.2 Procedure . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 31
3.3 Result . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 34
4 Conclusion 38
REFERENCES 39
viii
List of Figures
ix
Chapter 1
AWS Academy Cloud Foundations
1.1 Introduction
Amazon has a long history of using a decentralized IT infrastructure. This arrange-
ment enabled our development teams to access compute and storage resources on
demand, and it has increased overall productivity and agility. By 2005, Ama-
zon had spent over a decade and millions of dollars building and managing the
large-scale, reliable, and efficient IT infrastructure that powered one of the world’s
largest online retail platforms. Amazon launched Amazon Web Services (AWS) so
that other organizations could benefit from Amazon’s experience and investment
in running a large-scale distributed, transactional IT infrastructure. AWS has
been operating since 2006, and today serves hundreds of thousands of customers
worldwide. Today Amazon.com runs a global web platform serving millions of
customers and managing billions of dollars’ worth of commerce every year. Using
AWS, you can requisition compute power, storage, and other services in minutes
and have the flexibility to choose the development platform or programming model
that makes the most sense for the problems they’re trying to solve. You pay only
for what you use, with no up-front expenses or long-term commitments, making
AWS a cost-effective way to deliver applications. Here are some of examples of
how organizations, from research firms to large enterprises, use AWS today: A
large enterprise quickly and economically deploys new internal applications, such
as HR solutions, payroll applications, inventory management solutions, and on-
line training to its distributed workforce. An e-commerce website accommodates
sudden demand for a “hot” product caused by viral buzz from Facebook and Twit-
ter without having to upgrade its infrastructure. A pharmaceutical research firm
executes large-scale simulations using computing power provided by AWS. Me-
dia companies serve unlimited video, music, and other media to their worldwide
customer base.
1.1.1 Purpose
AWS offers low, pay-as-you-go pricing with no up-front expenses or long-term
commitments. We are able to build and manage a global infrastructure at scale,
and pass the cost saving benefits onto you in the form of lower prices. With the
efficiencies of our scale and expertise, we have been able to lower our prices on
1
15 different occasions over the past four years. AWS provides a massive global
cloud infrastructure that allows you to quickly innovate, experiment and iterate.
Instead of waiting weeks or months for hardware, you can instantly deploy new
applications, instantly scale up as your workload grows, and instantly scale down
based on demand. Whether you need one virtual server or thousands, whether you
need them for a few hours or 24/7, you still only pay for what you use. AWS is
a language and operating system agnostic platform. You choose the development
platform or programming model that makes the most sense for your business. You
can choose which services you use, one or several, and choose how you use them.
This flexibility allows you to focus on innovation, not infrastructure. AWS is a
secure, durable technology platform with industry-recognized certifications and
audits: PCI DSS Level 1, ISO 27001, FISMA Moderate, FedRAMP, HIPAA, and
SOC 1 (formerly referred to as SAS 70 and/or SSAE 16) and SOC 2 audit reports.
Our services and data centers have multiple layers of operational and physical
security to ensure the integrity and safety of your data.
1.1.2 Scope
IDC has forecast that IoT purpose-built platforms are growing at a CAGR of
17.7%, from $37.2 billion in 2014 to $84.1 billion in 2019. During this time, the
IoT purpose-built platform market will continue to witness considerable consolida-
tion through partnerships and acquisitions and new entrants to the market need to
work exceptionally hard to differentiate their IoT platform from that of incumbent
vendors. AWS could leverage its worldwide presence and knowledge of operational
and physical security across industry verticals to provide multiple layers of pro-
tection for its infrastructure and the end user to address one of the major hurdles
in the adoption of IoT particularly on a large scale where the threat surface could
be potentially unbounded.
2
traditional on-premises IT infrastructure. Users can access cloud services from
anywhere with an internet connection, reducing geographical constraints. Cloud
computing service models include Infrastructure as a Service (IaaS), Platform as
a Service (PaaS), and Software as a Service (SaaS). Cloud computing deployment
models include public cloud, private cloud, and hybrid cloud.
• Flexibility: Cloud services provide a wide range of tools and platforms, al-
lowing users to choose the best-fit solutions for their specific needs. This
flexibility extends to the selection of operating systems, databases, program-
ming languages, and more.
3
1.2.3 Introduction to AWS
Amazon Web Services (AWS) is a global leader in cloud computing, established
in 2006 as a subsidiary of Amazon.com. Since its inception, AWS has been at
the forefront of revolutionizing the IT landscape by offering a vast array of cloud
services that cater to the needs of organizations of all sizes worldwide. One of the
key features that sets AWS apart is its extensive global reach. AWS operates in
multiple geographic regions, and each region comprises several Availability Zones,
which are essentially data centers equipped with redundant power, cooling, and
networking. This global presence ensures high availability and reliability for the
services and applications hosted on AWS.
AWS’s service offerings span various categories, each designed to address specific
computing and infrastructure needs. In the realm of computing services, Amazon
Elastic Compute Cloud (EC2) allows users to run virtual machines (instances) in
the cloud, offering flexibility in terms of instance types, operating systems, and
configurations. For storage solutions, AWS provides scalable and highly available
options, including Amazon S3 (Simple Storage Service) for object storage and
Amazon EBS (Elastic Block Store) for block storage, making data storage and
retrieval straightforward. In the domain of databases, AWS offers fully managed
services like Amazon RDS (Relational Database Service) for relational databases
and Amazon DynamoDB for NoSQL databases, simplifying database management.
AWS’s networking services encompass Amazon VPC (Virtual Private Cloud) for
isolating resources, Amazon Route 53 for domain name system (DNS) manage-
ment, and AWS Direct Connect, which facilitates dedicated network connections.
Furthermore, AWS boasts a wide array of application services, such as AWS
Lambda for serverless computing, Amazon API Gateway for API creation, and
AWS Elastic Beanstalk for application deployment and management.
8
One of the key reasons organizations choose AWS is its global reach, with data
4
centers and regions strategically located around the world. This enables businesses
to deploy their applications and services in regions that are geographically closer
to their users, reducing latency and improving the overall user experience. AWS’s
extensive network of Availability Zones within regions provides redundancy and
high availability, ensuring applications remain resilient and operational even in the
face of hardware failures or unexpected disruptions.
The breadth of AWS services is another compelling reason for its popularity. AWS
offers over 200 fully featured services, including computing, storage, databases, ma-
chine learning, analytics, and Internet of Things (IoT), to name just a few. These
services provide organizations with the flexibility to choose the right tools for their
specific needs, whether they are building a simple website, running complex data
analytics, or deploying machine learning models.
Security is paramount in the cloud, and AWS has invested heavily in its secu-
rity and compliance measures. The AWS shared responsibility model ensures that
while AWS is responsible for the security of the cloud, customers are responsible
for the security in the cloud. This model, along with a vast array of security ser-
vices and features, allows organizations to build secure and compliant applications
and environments.
AWS’s focus on innovation is evident through its continuous release of new services
and features. AWS is at the forefront of emerging technologies such as serverless
computing, containers, and artificial intelligence. With AWS, organizations can
stay ahead in the competitive landscape by quickly adopting the latest technolog-
ical advancements.
5
Figure 1.1: AWS pricing model
The AWS Free Tier is a generous offering by Amazon Web Services designed
to allow customers to explore and experiment with AWS services at no cost for
a limited time. It provides a risk-free way for individuals, startups, and small
businesses to become familiar with AWS’s vast array of cloud services, without
incurring any initial charges.
The AWS Pricing Calculator is a valuable tool provided by Amazon Web Ser-
6
vices to help customers estimate and plan their AWS expenses effectively. This
online tool allows users to model and estimate the costs associated with deploying
and operating applications on AWS.
7
1.4.1 Regions
The AWS Cloud infrastructure is built around Regions.AWS has 22 Regions world-
wide. An AWS Regionis a physical geographical location with one or more Avail-
ability Zones. Availability Zones in turn consist of one or more data centers.To
achieve fault tolerance and stability, Regions are isolated from one another. Re-
sources in one Region are not automatically replicated to other Regions.
Availability Zones (AZs) are isolated data centers within AWS Regions that are
designed to be highly available and fault-tolerant. AWS typically has multiple AZs
within each Region. These AZs are physically separated from each other and have
their power, cooling, and networking infrastructure. Deploying resources across
multiple AZs within the same Region is a best practice to ensure redundancy and
minimize downtime in the event of failures.
• Data centers have a redundant design that anticipates and tolerates failure
while maintaining service levels.
• Data center locations are not disclosed and all access to them is restricted.
• In case of failure, automated processes move data traffic away from the af-
fected area.
8
1.4.3 Points of Presence
AWS Points of Presence are located in most of the major cities around the world.
By continuously measuring internet connectivity, performance and computing to
find the best way to route requests,the Points of Presence deliver a better near real-
time user experience. They are used by many AWS services, including Amazon
CloudFront, Amazon Route 53, AWS Shield, and AWS Web Application Firewall
(AWS WAF) services. Regional edge caches are used by default with Amazon
CloudFront. They are used when you have content that is not accessed frequently
enough to remain in an edge location and absorb this content and provide an
alternative to that content having to be fetched from the origin server.
9
Amazon Simple Storage Service (Amazon S3)
Amazon Elastic Block Store (EBS) provides block level storage volumes for use
with Amazon EC2 instances. Amazon EBS volumes are network- attached, and
persist independently from the life of an instance. Amazon EBS provides highly
available, highly reliable, predictable storage volumes that can be attached to
a running Amazon EC2 instance and exposed as a device within the instance.
Amazon EBS is particularly suited for applications that require a database, file
system, or access to raw block level storage.
Amazon Elastic File System (EFS) is a cloud-based file storage service provided
by Amazon Web Services (AWS) designed to provide scalable, elastic, concurrent,
and encrypted file storage for use with both AWS cloud services and on-premises
resources. Amazon EFS is built to be able to grow and shrink automatically as
files are added and removed. It supports Network File System (NFS) versions 4.0
and 4.1 (NFSv4) protocol, and control access to files through Portable Operat-
ing System Interface (POSIX) permissions. According to Amazon, use cases for
this file system service typically include content repositories, development envi-
ronments, web server farms, home directories, and big data applications. Amazon
EFS provides open-after-close consistency semantics that applications expect from
NFS. It is designed to be highly available and durable for thousands of EC2 in-
stances that are connected to the service. Amazon EFS stores each file system
object in multiple availability zones (AZs); an IT professional can access each file
system from different AZs in the region it is located. The service also supports
periodic backups from on-premises storage services to EFS for disaster recovery.
Amazon EFS includes default General Purpose performance mode and Max I/O
performance mode. An admin can opt for the latter performance mode, which
scales to higher throughput levels at the expense of latency for applications with
10
many attached instances. Pricing for EFS is based on the storage capacity that
the file system service uses.
Amazon Glacier is an extremely low-cost storage service that provides secure and
durable storage for data archiving and backup. In order to keep costs low, Amazon
Glacier is optimized for data that is infrequently accessed and for which retrieval
times of several hours are suitable. With Amazon Glacier, customers can reliably
store large or small amounts of data for as little as $0.01 per gigabyte per month,
a significant savings compared to on- premises solutions. It only takes a few clicks
in the AWS Management Console to set up Amazon Glacier, and then you can
upload any amount of data you choose.
Amazon Elastic Compute Cloud (Amazon EC2) is a web service that provides
resizable compute capacity in the cloud. It is designed to make web- scale com-
puting easier for developers and system administrators. Amazon EC2’s simple
web service interface allows you to obtain and configure capacity with minimal
friction. It provides you with complete control of your computing resources and
lets you run on Amazon’s proven computing environment.Amazon EC2 reduces
the time required to obtain and boot new server instances to minutes, allowing
you to quickly scale capacity, both up and down, as your computing requirements
change. Amazon EC2 changes the economics of computing by allowing you to pay
only for capacity that you actually use. Amazon EC2 provides developers and
system administrators the tools to build failure resilient applications and isolate
themselves from common failure scenarios.
Auto Scaling allows you to scale your Amazon EC2 capacity up or down automat-
ically according to the conditions you define. With Auto Scaling, you can ensure
that the number of Amazon EC2 instances you’re using increases seamlessly dur-
ing demand spikes to maintain performance and decreases automatically during
demand lulls to minimize costs. Auto Scaling is particularly well suited for appli-
cations that experience hourly, daily, or weekly variability in usage. Auto Scaling
is enabled by Amazon CloudWatch and available at no additional charge beyond
Amazon CloudWatch fees.
11
AWS Elastic Beanstalk
AWS Fargate
AWS Lambda
12
Figure 1.4: AWS Database Services
Amazon DynamoDB
Amazon DynamoDB is a fast, fully managed NoSQL database service that makes
it simple and cost-effective to store and retrieve any amount of data, and serve
any level of request traffic.
All data items are stored on Solid State Drives (SSDs), and are replicated
across 3 Availability Zones for high availability and durability. With DynamoDB,
you can offload the administrative burden of operating and scaling a highly avail-
able distributed database cluster, while paying a low price for only what you use
Amazon DynamoDB is designed to address the core problems of database manage-
13
ment, performance, scalability, and reliability. Developers can create a database
table that can store and retrieve any amount of data, and serve any level of re-
quest traffic. DynamoDB automatically spreads the data and traffic for the table
over a sufficient number of servers to handle the request capacity specified by
the customer and the amount of data stored, while maintaining consistent, fast
performance. All data items are stored on solid state drives (SSDs) and are au-
tomatically replicated across multiple Availability Zones in a Region to provide
built-in high availability and data durability.
Amazon Aurora
Amazon Redshift
Amazon Virtual Private Cloud lets you provision a logically isolated section of
the Amazon Web Services (AWS) Cloud where you can launch AWS resources in
a virtual network that you define. You have complete control over your virtual
networking environment, including selection of your own IP address range, creation
of subnets, and configuration of route tables and network gateways. You can easily
customize the network configuration for your Amazon VPC. For example, you can
create a public-facing subnet for your webservers that has access to the Internet,
and place your backend systems such as databases or application servers in a
private-facing subnet with no Internet access. You can leverage multiple layers of
14
Figure 1.5: Amazon Route 53
security (including security groups and network access control lists) to help control
access to Amazon EC2 instances in each subnet. Additionally, you can create a
hardware virtual private network (VPN) connection between your corporate data
center and your VPC and leverage the AWS cloud as an extension of your corporate
data center.
Amazon Route 53
Amazon Route 53 is a highly available and scalable Domain Name System (DNS)
web service. It is designed to give developers and businesses an extremely reliable
and costeffective way to route end users to Internet applications by translating
human readable names, such as www.example.com, into the numeric IP addresses,
such as 192.0.2.1, that computers use to connect to each other.
Amazon Route 53 is designed to be fast, easy to use, and cost effective. It
answers DNS queries with low latency by using a global network of DNS servers.
Queries for your domain are automatically routed to the nearest DNS server, and
thus are answered with the best possible performance.
15
throughput, and provide a more consistent network experience than Internet-based
connections. AWS Direct Connect lets you establish a dedicated network connec-
tion between your network and one of the AWS Direct Connect locations. Using
industry standard 802.1Q virtual LANS (VLANs), this dedicated connection can
be partitioned into multiple logical connections. This allows you to use the same
connection to access public resources such as objects stored in Amazon S3 using
public IP address space, and private resources such as Amazon EC2 instances run-
ning within an Amazon VPC using private IP space, while maintaining network
separation between the public and private environments. Logical connections can
be reconfigured at any time to meet your changing needs.
16
permissions, and authentication in a secure and scalable manner, helping to ensure
the confidentiality and integrity of their AWS resources. AWS IAM enables the
creation and management of user identities and user groups. This allows organi-
zations to define who can access AWS resources, and it simplifies access control
by grouping users with similar permissions.
AWS Organizations
17
Amazon Cognito
AWS Artifact
AWS Artifact is a service provided by Amazon Web Services (AWS) that offers on-
demand access to compliance documentation, reports, and other resources related
to AWS’s security and compliance posture. It is designed to help AWS customers
meet their auditing and compliance requirements by providing a central repository
for obtaining the necessary documentation and reports. Users can access AWS
Artifact on-demand, allowing them to retrieve compliance documents and reports
whenever they are needed, rather than having to wait for periodic updates.
AWS Config
AWS Config is a fully managed service provided by Amazon Web Services (AWS)
that allows users to assess, audit, and evaluate the configuration of their AWS re-
sources. It provides continuous monitoring and recording of resource configurations
and changes, helping organizations maintain compliance, security, and governance
while gaining insights into their AWS infrastructure. AWS Config continuously
records the configuration of AWS resources. This includes details about resource
properties, relationships, and configuration history.
18
Figure 1.7: Amazon CloudWatch
Amazon CloudWatch
AWS Auto Scaling is a service provided by Amazon Web Services (AWS) that
enables users to automatically adjust the capacity of their AWS resources to ac-
commodate varying workloads. It helps organizations optimize the performance,
cost, and availability of their applications by dynamically scaling resources up or
down based on demand. Users can define scaling policies that determine when and
how resources should be scaled. These policies can be based on metrics like CPU
utilization, network traffic, or custom application metrics.
19
Chapter 2
AWS Academy Cloud Architecting
2.2.1 Bucket
• In Amazon S3, a bucket is a container for objects stored in the cloud. Each
object is contained in a bucket, and bucket names must be unique across all
AWS accounts in all the AWS Regions within a partition
20
• Amazon S3 provides a simple web service interface that can be used to store
and retrieve any amount of data, at any time, from anywhere, making it easy
to build applications that make use of cloud-native storage.
• Using User Data to Configure an EC2 Instance: User data is a feature that
allows users to customize the configuration of an EC2 instance during launch.
This is useful for tasks such as installing applications, running scripts, and
configuring settings to meet specific needs.
21
2.3.3 Demo Configuring an EC2 Instance with User Data:
This step often involves a demonstration or hands-on practice to show how user
data can be utilized to configure an EC2 instance based on specific use cases. Users
can learn how to automate tasks and set up instances with desired configurations.
• On-Demand Instances:
On-Demand Instances are the most flexible pricing option. Users can pay for
compute capacity by the hour or second, with no upfront costs or long-term
commitments. This option is ideal for workloads with variable or unpre-
dictable demand, allowing users to scale up or down as needed.
• Spot Instances:
Spot Instances allow users to take advantage of spare EC2 capacity at sig-
nificantly reduced prices. Spot Instances are suitable for workloads with
flexible start and end times, such as batch processing, data analysis, and
testing. Users bid on available capacity, and when the spot price is lower
than the bid, the instance is provisioned.
• Dedicated Hosts:
Dedicated Hosts provide physical EC2 servers dedicated to a specific user.
They are ideal for workloads with specific licensing requirements or compli-
ance needs. Users pay for the host and have control over the placement of
instances.
22
• Capacity Reservations:
Capacity Reservations allow users to reserve capacity for specific instance
types in specific Availability Zones for a one- or three-year term. This en-
sures that capacity is always available, making it suitable for critical and
predictable workloads.
23
2.6.1 Creating an AWS networking environment:
• Amazon VPC enables us to provision VPCs, which are logically isolated
sections of the AWS Cloud where we can launch our AWS resources. A VPC
belongs to only one Region and is divided into subnets. A subnet belongs
to one Availability Zone or Local Zone, and it is a subset of the VPC CIDR
block. We can create multiple VPCs within the same Region or in different
Regions, and in the same account or different accounts.
• When creating subnets for our VPC, we must specify an IPv4 CIDR block
for the subnet from the range of our VPC. We can optionally specify an IPv6
CIDR block for a subnet if there is an IPv6 CIDR block associated with the
VPC. Depending on the connectivity that we need, we might also need to
add gateways and route tables.
24
the corporate network into the AWS cloud. Site-to-Site VPN is ideal for hybrid
cloud architectures, remote access, and secure data transfer.
25
programming interfaces (APIs) and resources they can access. IAM is secure
by default, and users have no access to AWS resources until permissions are
explicitly granted
• IAM is integrated into most AWS services, and we can define access controls
from one place in the AWS Management Console, and they will take effect
throughout our AWS environment. We can use IAM to define what a prin-
cipal entity is allowed to do in an AWS environment, and AWS evaluates
these policies when a principal uses an IAM entity (user or role) to make a
request. Permissions in the policies determine whether the request is allowed
or denied. Most policies are stored in AWS as JSON documents
• This means we can increase the number of web servers when traffic to our
application spikes, and lower the write capacity on our database when traffic
goes down
• AWS provides several services that support elasticity, including Amazon S3,
Amazon SQS, Amazon SNS, Amazon SES, Amazon Aurora, Amazon EC2,
Amazon ECS, AWS Fargate, Amazon EKS, and Amazon DynamoDB. Some
services require vertical scaling, while others integrate with AWS Auto Scal-
ing.
26
2.9.2 High Avaliability:
High availability refers to the ability of a system to remain available even when
some components fail. In a highly available system, downtime is minimized as
much as possible, and minimal human intervention is required.
• Services that provide basic infrastructure, such as EC2 and EBS, provide
specific features, such as availability zones, elastic IP addresses, and snap-
shots, that a fault-tolerant and highly available system must take advantage
of and use correctly
27
2.10.1 Automating Your Infrastructure:
Automating infrastructure in AWS involves creating, provisioning, and manag-
ing resources programmatically. Tools like AWS CloudFormation, Terraform, and
AWS Elastic Beanstalk enable organizations to define infrastructure as code (IAC),
making it possible to version, deploy, and replicate infrastructure components
reliably and consistently. The first part delves into the process of automating
infrastructure through scripting and IAC. This includes defining resources, creat-
ing templates, and using orchestration tools to deploy and manage infrastructure
efficiently. The second part focuses on more advanced automation techniques,
such as automating the management of infrastructure based on application needs,
leveraging configuration management tools, and handling updates and rollbacks
seamlessly. Automation is not limited to infrastructure provisioning but extends
to various other areas, including application deployment, scaling, monitoring, and
security. By implementing automation, organizations can respond to changes and
demands more rapidly, reduce the risk of errors, and free up human resources to
focus on more strategic tasks.
28
edge locations and regional edge caches to deliver content to our users. To use
CloudFront to deliver our content, we specify an origin server and configure a
CloudFront distribution.
29
to send and receive notifications as messages, enhancing communication and co-
ordination. SNS is often used for fan-out scenarios and real-time communication.
30
Chapter 3
Implementation
3.1 Aim
Create a Virtual Machine, connect and work with it
3.2 Procedure
1. open EC2 dashboard by logging into your AWS management console and
then clicking the Amazon EC2 console
2. find compute under services from top left corner and then find EC2 under
compute.
3. we are now in the Amazon EC2 console, click the launch instance button.
4. With Amazon EC2, we can specify the software and specifications of the
instance you want to use. In this screen, you are shown options to choose
an Amazon Machine Image(AMI), which is a template that contains the
software configuration required to launch your instance.
31
Figure 3.2: Amazon Machine Image
6. AWS security groups (SGs) are associated with EC2 instances and provide
security at the protocol and port access level. Each security group – working
much the same way as a firewall – contains a set of rules that filter traffic
coming into and out of an EC2 instance. Each security group must have a
name, allowing you to easily identify it from account menus. It’s always a
good idea to choose a descriptive name that will quickly tell you this group’s
purpose. In fact, you would be well served to define and use a consistent
convention for naming all objects in your AWS account. Security groups
exist within individual VPCs. When you create a new group, make sure
that it’s in the same VPC as the resources it’s meant to protect.
7. To connect to your virtual machine, you need a key pair. A key pair is used to
log into your Instance (just like your house key is used to enter your home).
In the popover, select Create a new key pair and name it Demo. Then click
Download Key Pair. Demo.pem will be downloaded to your computer—make
sure to save this key pair in a safe location on your computer.
32
Figure 3.3: Amazon EC2 Instance type
10. Now we are trying to host a website on our EC2 instance, for that we have
to run the following commands on the terminal where we connected our EC2
instance
sudo su is to convert the permission to root.
yum install –y httpd for webserver creation.
chkconfig httpd on to check whether the service is on or not.
service httpd start to check if server is on then start the server.
11. Now create simple HTML file called index.HTML and home.HTML using
simple echo commands
echo “We are CSE 1”>> /var/www /html/index.html
Now change the directory to html and verify.
cd /var/www/html – change the directory
ls – to list the files.
12. Inorder to check the output, open a web browser and type the specified URL:
public dns of the launched instance has to be copied from AWS Console and
paste it as URL.
33
Figure 3.4: Amazon EC2 security groups
13. Now we have to terminate the EC2 instance if we didn’t need it or else we
get charged for the usage, so it is a good practice to terminate the instance
after it’s usage.
14. back on EC2 console, select the box next to the instance we created. Then
click the Action button, navigate to Instance State, and click Terminate.
15. You will be asked to confirm your termination- select Yes, Terminate. This
process can take several seconds to complete. Once your instance has been
terminated, the Instance State will change to terminated on your EC2 Con-
sole.
3.3 Result
We successfully created an EC2 instance, configured it for our requirements, hosted
a website using the instance, and finally terminated it after implementation and
demonstration.
34
Figure 3.5: Amazon EC2 Key pair
35
Figure 3.7: Public IP address
36
Figure 3.9: Working with EC2 Instance
37
Chapter 4
Conclusion
The Amazon Web Services (AWS) Cloud Virtual Internship offered a compre-
hensive exploration of cloud computing and AWS services, covering fundamental
concepts to advanced topics like automation and disaster recovery. The hands-on
experience of creating and managing Elastic Compute Cloud (EC2) instances fur-
ther enriched participants’ learning, providing practical insights into provisioning
virtual servers and deploying applications. This practical dimension, particularly
with EC2 instances, enhanced interns’ abilities to leverage AWS effectively for
diverse organizational needs, solidifying their understanding of cloud architecture
and resource management.
38
REFERENCES
39