0% found this document useful (0 votes)
29 views69 pages

CCP Notes Module-2

Uploaded by

INFINITY FACTS
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
29 views69 pages

CCP Notes Module-2

Uploaded by

INFINITY FACTS
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPT, PDF, TXT or read online on Scribd

Amity School of Engineering & Technology

Amity School of Engineering and Technology


Course Level: UG
Course Title: Cloud Computing Practitioner
Course Code: CSE314

Module-2
Dr. Bhupendra Singh

1
Amity School of Engineering & Technology

Introduction to Amazon EC2


 Amazon Elastic Compute Cloud (Amazon EC2) provides scalable
computing capacity in the Amazon Web Services (AWS) Cloud.

 Using Amazon EC2 eliminates your need to invest in hardware up front,


so you can develop and deploy applications faster.

 You can use Amazon EC2 to launch as many or as few virtual servers as
you need, configure security and networking, and manage storage.

 Amazon EC2 enables you to scale up or down to handle changes in


requirements or spikes in popularity, reducing your need to forecast traffic.

2
Amity School of Engineering & Technology

Features of Amazon EC2


 Amazon EC2 provides the following features:

 Virtual computing environments, known as instances

 Preconfigured templates for your instances, known as Amazon Machine


Images (AMIs), that package the bits you need for your server (including
the operating system and additional software)

 Various configurations of CPU, memory, storage, and networking capacity


for your instances, known as instance types

 Secure login information for your instances using key pairs (AWS stores
the public key, and you store the private key in a secure place)

3
Amity School of Engineering & Technology

Features of Amazon EC2


 Storage volumes for temporary data that's deleted when you stop,
hibernate, or terminate your instance, known as instance store volumes.

 Persistent storage volumes for your data using Amazon Elastic Block Store
(Amazon EBS), known as Amazon EBS volumes.

 Multiple physical locations for your resources, such as instances and


Amazon EBS volumes, known as Regions and Availability Zones.

 A firewall that enables you to specify the protocols, ports, and source IP
ranges that can reach your instances using security groups.

 Static IPv4 addresses for dynamic cloud computing, known as Elastic IP


addresses.

 Metadata, known as tags, that you can create and assign to your Amazon
EC2 resources. 4
Amity School of Engineering & Technology

Features of Amazon EC2


 Virtual networks you can create that are logically isolated from the rest of
the AWS Cloud, and that you can optionally connect to your own network,
known as virtual private clouds (VPCs) .

5
Amity School of Engineering & Technology

How to get started with Amazon EC2


 Virtual networks you can create that are logically isolated from the rest of
the AWS Cloud, and that you can optionally connect to your own network,
known as virtual private clouds (VPCs) .

 Get up and running

 Complete the tasks in this section to get set up for launching an


Amazon EC2 instance for the first time:

 Sign up for AWS

 Create a key pair

 Create a security group

6
Amity School of Engineering & Technology

Basics for EC2


 Basics
 Instances and AMIs
 An Amazon Machine Image (AMI) is a template that contains a software
configuration (for example, an operating system, an application server, and
applications). From an AMI, you launch an instance, which is a copy of the
AMI running as a virtual server in the cloud. You can launch multiple
instances of an AMI, as shown.

7
Amity School of Engineering & Technology

Basics for EC2


 Basics
 Instances
 An instance is a virtual server in the cloud. Its configuration at launch is a
copy of the AMI that you specified when you launched the instance.

 You can launch different types of instances from a single AMI. An


instance type essentially determines the hardware of the host computer
used for your instance. Each instance type offers different compute and
memory capabilities. Select an instance type based on the amount of
memory and computing power that you need for the application or
software that you plan to run on the instance.

 After you launch an instance, it looks like a traditional host, and you can
interact with it as you would any computer. You have complete control of
your instances; you can use sudo to run commands that require root
privileges.
8
Amity School of Engineering & Technology

Basics for EC2


 Basics
 Storage for your instance
 The root device for your instance contains the image used to boot the
instance.

 Your instance may include local storage volumes, known as instance store
volumes, which you can configure at launch time with block device
mapping. For more information, see Block device mapping. After these
volumes have been added to and mapped on your instance, they are
available for you to mount and use. If your instance fails, or if your
instance is stopped or terminated, the data on these volumes is lost;
therefore, these volumes are best used for temporary data. To keep
important data safe, you should use a replication strategy across multiple
instances, or store your persistent data in Amazon S3 or Amazon EBS
volumes.

9
Amity School of Engineering & Technology

Basics for EC2


 Basics
 Security best practices

 Use AWS Identity and Access Management (IAM) to control access to


your AWS resources, including your instances. You can create IAM users
and groups under your AWS account, assign security credentials to each,
and control the access that each has to resources and services in AWS.

 Restrict access by only allowing trusted hosts or networks to access ports


on your instance. For example, you can restrict SSH access by restricting
incoming traffic on port 22.

 Review the rules in your security groups regularly, and ensure that you
apply the principle of least privilege—only open up permissions that you
require. You can also create different security groups to deal with instances
that have different security requirements.
10
Amity School of Engineering & Technology

Basics for EC2


 Basics
 Security best practices

 Disable password-based logins for instances launched from your AMI.


Passwords can be found or cracked, and are a security risk.

11
Amity School of Engineering & Technology

Basics for EC2


 Basics
 Stop and terminate instances

 You can stop or terminate a running instance at any time.

 Stop an instance

 When an instance is stopped, the instance performs a normal shutdown,


and then transitions to a stopped state. All of its Amazon EBS volumes
remain attached, and you can start the instance again at a later time.

 You are not charged for additional instance usage while the instance is in a
stopped state. A minimum of one minute is charged for every transition
from a stopped state to a running state. If the instance type was changed
while the instance was stopped, you will be charged the rate for the new
instance type after the instance is started. All of the associated Amazon
EBS usage of your instance, including root device usage, is billed using 12
typical Amazon Elastic Block Store (EBS) prices.
Amity School of Engineering & Technology

Basics for EC2


 Basics
 Terminate an instance

 When an instance is terminated, the instance performs a normal shutdown.


The root device volume is deleted by default, but any attached Amazon
EBS volumes are preserved by default, determined by each volume's
deleteOnTermination attribute setting. The instance itself is also deleted,
and you can't start the instance again at a later time.

 To prevent accidental termination, you can disable instance termination. If


you do so, ensure that the disableApiTermination attribute is set to true for
the instance. To control the behavior of an instance shutdown, such as
shutdown -h in Linux or shutdown in Windows, set the
instanceInitiatedShutdownBehavior instance attribute to stop or terminate
as desired. Instances with Amazon EBS volumes for the root device default
to stop, and instances with instance-store root devices are always
terminated as the result of an instance shutdown. 13
Amity School of Engineering & Technology

Basics for EC2


 Basics
 Terminate an instance

 When an instance is in a stopped state, you can attach or detach Amazon


EBS volumes. You can also create an AMI from the instance, and you can
change the kernel, RAM disk, and instance type.

14
Amity School of Engineering & Technology

Basics for EC2


 Basics
 AMIs
 Amazon Web Services (AWS) publishes many Amazon Machine Images
(AMIs) that contain common software configurations for public use. In
addition, members of the AWS developer community have published their
own custom AMIs. You can also create your own custom AMI or AMIs;
doing so enables you to quickly and easily start new instances that have
everything you need.

 For example, if your application is a website or a web service, your AMI


could include a web server, the associated static content, and the code for
the dynamic pages. As a result, after you launch an instance from this
AMI, your web server starts, and your application is ready to accept
requests.

15
Amity School of Engineering & Technology

Basics for EC2


 Basics
 AMIs

 All AMIs are categorized as either backed by Amazon EBS, which means
that the root device for an instance launched from the AMI is an Amazon
EBS volume, or backed by instance store, which means that the root device
for an instance launched from the AMI is an instance store volume created
from a template stored in Amazon Simple Storage Service (S3).

 The description of an AMI indicates the type of root device (either ebs or
instance store). This is important because there are significant differences
in what you can do with each type of AMI.

 You can deregister an AMI when you have finished using it. After you
deregister an AMI, you can't use it to launch new instances. Existing
instances launched from the AMI are not affected. Therefore, if you are
also finished with the instances launched from these AMIs, you should 16
terminate them.
Amity School of Engineering & Technology

ELASTIC BLOCK STORE


 Amazon Elastic Block Store (EBS) is an easy to use, high-performance,
block-storage service designed for use with Amazon Elastic Compute
Cloud (EC2) for both throughput and transaction intensive workloads at
any scale. A broad range of workloads, such as relational and non-
relational databases, enterprise applications, containerized applications, big
data analytics engines, file systems, and media workflows are widely
deployed on Amazon EBS.

 EBS volumes are replicated within an Availability Zone (AZ) and can
easily scale to petabytes of data. Also, you can use EBS Snapshots with
automated lifecycle policies to back up your volumes in Amazon S3, while
ensuring geographic protection of your data and business continuity.

17
Amity School of Engineering & Technology

ELASTIC BLOCK STORE


 Benefits
 Performance for any workload: EBS volumes are performant for your
most demanding workloads, including mission-critical applications such as
SAP, Oracle, and Microsoft products. SSD-backed options include a
volume designed for high performance applications and a general-purpose
volume that offers strong price/performance for most workloads.

 Highly available and durable: Amazon EBS architecture offers


reliability for mission-critical applications. EBS volumes are designed to
protect against failures by replicating within the Availability Zone (AZ),
offering 99.999% availability. EBS offers a high-durability volume (io2)
for customers that need 99.999% durability, especially for their business-
critical applications.

18
Amity School of Engineering & Technology

ELASTIC BLOCK STORE


 Cost-effective: EBS offers six different volumes at various price points
and performance benchmarks, enabling you to optimize costs and invest in
a precise level of storage for your application needs. Options range from
highly-cost-effective, dollar-per-gigabyte volumes to high-performance
volumes with high IOPS and high throughput designed for mission-critical
workloads.

19
Amity School of Engineering & Technology

ELASTIC BLOCK STORE


 Cost-effective: EBS offers six different volumes at various price points
and performance benchmarks, enabling you to optimize costs and invest in
a precise level of storage for your application needs. Options range from
highly-cost-effective, dollar-per-gigabyte volumes to high-performance
volumes with high IOPS and high throughput designed for mission-critical
workloads.

 Easy to Use: Amazon EBS volumes are easy to create, use, encrypt, and
protect. Elastic Volumes capability allows you to increase storage, tune
performance up and down, and change volume types without any
disruption to your workloads. EBS Snapshots allow you to easily take
backups of your volumes for geographic protection of your data.

20
Amity School of Engineering & Technology

Amazon EBS volumes


 An Amazon EBS volume is a durable, block-level storage device that you
can attach to your instances. After you attach a volume to an instance, you
can use it as you would use a physical hard drive. EBS volumes are
flexible. For current-generation volumes attached to current-generation
instance types, you can dynamically increase size, modify the provisioned
IOPS (Input/output operations per second) capacity, and change volume
type on live production volumes.

 You can use EBS volumes as primary storage for data that requires
frequent updates, such as the system drive for an instance or storage for a
database application. You can also use them for throughput-intensive
applications that perform continuous disk scans. EBS volumes persist
independently from the running life of an EC2 instance

21
Amity School of Engineering & Technology

EBS Volume Types


 EBS General Purpose (SSD)
 This volume type is suitable for small and medium workloads like Root
disk EC2 volumes, small and medium database workloads, frequently logs
accessing workloads, etc. By default, SSD supports 3 IOPS (Input Output
Operations per Second)/GB means 1 GB volume will give 3 IOPS, and 10
GB volume will give 30 IOPS. Its storage capacity of one volume ranges
from 1 GB to 1 TB. The cost of one volume is $0.10 per GB for one
month.

 Provisioned IOPS (SSD)

 This volume type is suitable for the most demanding I/O intensive,
transactional workloads and large relational, EMR and Hadoop workloads,
etc. By default, IOPS SSD supports 30 IOPS/GB means 10GB volume will
give 300 IOPS. Its storage capacity of one volume ranges from 10GB to
1TB. The cost of one volume is $0.125 per GB for one month for 22
provisioned storage and $0.10 per provisioned IOPS for one month.
Amity School of Engineering & Technology

EBS Volume Types


 EBS Magnetic Volumes

 It was formerly known as standard volumes. This volume type is suitable


for ideal workloads like infrequently accessing data, i.e. data backups for
recovery, logs storage, etc. Its storage capacity of one volume ranges from
10GB to 1TB. The cost of one volume is $0.05 per GB for one month for
provisioned storage and $0. 05 per million I/O request.

23
Amity School of Engineering & Technology

AWS Snapshots
 Amazon EBS snapshots provide long-term data protection and durability
for data held on EBS volumes and can also be used for replicating data
across various AWS regions as well as starting new Amazon EBS
volumes. The AWS architecture ensures that these copy-on-write
snapshots contain all the incremental changes as well as all the metadata
required within the same snapshot itself. During an EBS snapshot creation
process, snapshot data is transferred in to Amazon S3 storage buckets
(managed by AWS & Not visible to the end user) as an automated
background task.

 AWS Use Cases for Snapshots


 There are various use cases for using EBS snapshots on AWS. Some of
these include:

 Data backup: Amazon EBS snapshots are the AWS-recommended way to


take off-site, off-AZ, or off-region data AWS backups for Amazon EC2 24
instances and their data volumes.
Amity School of Engineering & Technology

AWS Snapshots
 Disaster recovery: Amazon EBS snapshots can be leveraged to enable
data replication to various other AWS regions in order to provide a DR
capability for the Amazon EC2 instances using the snapshot copy
capability.

 Dev/test: Amazon EBS snapshots can also be leveraged to meet various


data cloning requirements. Creating dev/test clones of various production
Amazon EC2 instances can now be streamlined through the use of creating
EBS volume copies through snapshots.

25
Amity School of Engineering & Technology

AWS Elastic Beanstalk


 AWS Elastic Beanstalk is an AWS-managed service for web applications.
Elastic Beanstalk is a pre-configured EC2 server that can directly take up
your application code and environment configurations and use it to
automatically provision and deploy the required resources within AWS to
run the web application.

 Elastic Beanstalk is a Platform As A Service (PAAS) as it allows users to


directly use a pre-configured server for their application.

 You can deploy applications without ever having to use elastic beanstalk
but that would mean having to choose the appropriate service from the vast
array of services offered by AWS, manually provisioning these AWS
resources, and stitching them up together to form a complete web
application. Elastic Beanstalk abstracts the underlying configuration work
and allows you as a user to focus on more pressing matters.
26
Amity School of Engineering & Technology

Elastic Beanstalk Working


 Elastic Beanstalk is a fully managed service provided by AWS that makes
it easy to deploy and manage applications in the cloud without worrying
about the underlying infrastructure. First, create an application and select
an environment, configure the environment, and deploy the application.

27
Amity School of Engineering & Technology

28
Amity School of Engineering & Technology

Elastic Beanstalk-Supported Platforms


 AWS Elastic Beanstalk provides a number of platforms on which we may
develop our apps, deploy our code, and it manages the entire supporting
architecture and computational resources for code execution.

 Platforms for Programming Languages Provided By Elastic Beanstalk are


 GO
 Java
 Node.js
 PHP
 Python
 Ruby

 Platforms for Application Servers Provided by Elastic Beanstalk are


 Tomcat
 Docker
29
Amity School of Engineering & Technology

30
Amity School of Engineering & Technology

Elastic Beanstalk Features


 Elastic Beanstalk offers preconfigured runtime-like environments and
deployment tools which makes it easy to deploy our application.

 It supports numerous platforms and programming languages like GO,


Python java, etc.

 Elastic Beanstalk scales your application automatically when the demand


increases with the help of auto-scaling rules.

 Elastic Beanstalk can integrate with databases such as Mysql, Oracle, and
Microsoft SQL Server.

 Access control via AWS Identity and Access Management and built-in
security features like SSL/TLS encryption are provided by Elastic
Beanstalk (IAM).
31
Amity School of Engineering & Technology

Elastic Beanstalk Components


 Application: Elastic Beanstalk directly takes in our project code. So
Elastic Beanstalk application is named the same as your project home
directory.

 Application Environments: Users may want their application to run on


different environments like DEV, UAT, and PROD. You can create and
configure different environments to run applications on different stages.

 Environment Health: One of the most lucrative features of running


applications on AWS or most of the other cloud platforms is automated
health checks. AWS runs automatic health checks on all EC-2 deployments
(Elastic Beanstalk is a managed EC-2 service) which can be monitored
from the AWS console. Health check responses:
 Red: The application failed all health tests.
 Yellow: The application failed some of the health tests.
 Grey: The application is updating.
 Green: The application passed the health check successfully.
32
Amity School of Engineering & Technology

Elastic Beanstalk Components


 Isolated: All environments within a single application are isolated from
each other (independent of each others’ running states). Needless to say,
two different applications are also isolated.

 Scalability: Using Auto-Scaling within Elastic Beanstalk makes the


application dynamically scalable.

 Elastic Load Balancing: All the web requests to the application are not
directly relayed to application instances. They first hit the Elastic Load
Balancer (ELB), which, as the name suggests, balances the load across all
the application instances.

 Language support: Elastic Beanstalk supports the applications developed


with Java, .NET, PHP, Node.js, Python, Ruby, Go, and Docker on familiar
servers such as Apache, Nginx, Passenger, and IIS.

33
Amity School of Engineering & Technology

Elastic Beanstalk Components


 Pricing: There is no extra charge for using Elastic Beanstalk. Users are
only required to pay for the services and resources provisioned by Elastic
Beanstalk Service.

 Automatic Provisioning: Elastic Beanstalk takes away the burden of


choosing the right services and configuring their security groups to work
together.

 Impossible to Outgrow: AWS claims that since Elastic Beanstalk uses the
Auto Scaling feature it can, in theory, handle any amount of internet
traffic.

34
Amity School of Engineering & Technology

AWS LAMBDA
 Play the video

35
Amity School of Engineering & Technology

Amazon S3 (Simple Storage Service)


 Amazon Simple Storage Service (Amazon S3) is an object storage service that
offers industry-leading scalability, data availability, security, and performance.

 This means customers of all sizes and industries can use it to store and protect
any amount of data for a range of use cases, such as data lakes, websites,
mobile applications, backup and restore, archive, enterprise applications, IoT
devices, and big data analytics.

 Amazon S3 provides easy-to-use management features so you can organize


your data and configure finely-tuned access controls to meet your specific
business, organizational, and compliance requirements.

 Amazon S3 is designed for 99.999999999% (11 9's) of durability, and stores


data for millions of applications for companies all around the world.

36
Amity School of Engineering & Technology

Amazon S3 (Simple Storage Service)


 Benefits

 Industry-leading performance, scalability, availability, and durability


 Wide range of cost-effective storage classes
 Unmatched security, compliance, and audit capabilities
 Easily manage data and access controls
 Query-in-place services for analytics
 Most supported cloud storage service

 Play the video

37
Amity School of Engineering & Technology

Amazon S3 (Simple Storage Service)


 Amazon S3 storage classes

 Amazon S3 comes in seven storage classes:

 S3 Standard is suitable for frequently accessed data that needs to be delivered


with low latency and high throughput. S3 Standard targets applications,
dynamic websites, content distribution and big data workloads.

 S3 Intelligent- Tiering is most suitable for data with access needs that are either
changing or unknown. S3 Intelligent-Tiering has four different access tiers:
Frequent Access, Infrequent Access (IA), Archive and Deep Archive. Data is
automatically moved to the most inexpensive storage tier according to customer
access patterns.
 S3 Standard- IA offers a lower storage price for data that is needed less often
but that must be quickly accessible. This tier can be used for backups, DR and
long-term data storage. 38
Amity School of Engineering & Technology

Amazon S3 (Simple Storage Service)


 S3 One Zone-IA is designed for data that is used infrequently but requires
rapid access on the occasions that it is needed. Use of S3 One Zone-IA is
indicated for infrequently accessed data without high resilience or availability
needs, data that is able to be recreated and backing up on-premises data.

 S3 Glacier is the least expensive storage option in S3, but it is strictly designed
for archival storage because it takes longer to access the data. Glacier offers
variable retrieval rates that range from minutes to hours.

 S3 Glacier Deep Archive has the lowest price option for S3 storage. S3
Glacier Deep Archive is designed to retain data that only needs to be accessed
once or twice a year.

 S3 Outposts adds S3 object storage features and APIs to an on-premises AWS


Outposts environment. S3 Outposts is best used when performance needs call
for data to be stored near on-premises applications or to satisfy specific data
residency requirements. 39
Amity School of Engineering & Technology

Amazon S3: Working with buckets


 Amazon does not impose a limit on the number of items that a subscriber can
store; however, there are limits to Amazon S3 bucket quantities. Each AWS
account allows up to 100 buckets to be created; limits can be increased to 1,000
with service limit increases. An Amazon S3 bucket exists within a particular
region of the cloud. An AWS customer can use an Amazon S3 API to upload
objects to a particular bucket. Customers can configure and manage S3 buckets.

 Protecting your data

 User data is stored on redundant servers in multiple data centers. S3 uses a


simple web-based interface -- the Amazon S3 console -- and encryption for user
authentication.

 S3 buckets are kept private from public access by default, but an administrator
can choose to make them publicly accessible. A user can also encrypt data prior
to storage. Rights may be specified for individual users, who will then need
approved AWS credentials to download or access a file in S3. 40
Amity School of Engineering & Technology

Amazon S3: Working with buckets


 When a user stores data in S3, Amazon tracks the usage for billing purposes,
but it does not otherwise access the data unless required to do so by law.

 Competitor services

 Competitor services to Amazon S3 include other object storage software tool


services. Comparable object storage services are offered by other major cloud
service providers (CSPs), such as Google, Microsoft, IBM and Alibaba. Main
competitor services to Amazon S3 include the following:
 Google Cloud Storage
 Azure Blob storage
 IBM Cloud Object Storage
 DigitalOcean Spaces
 Alibaba Cloud Object Storage Service (OSS)
 Cloudian
 Zadara Storage
 Oracle Cloud Infrastructure Object Storage 41
Amity School of Engineering & Technology

Getting started with Amazon S3


 Play the video

42
Amity School of Engineering & Technology

Assignment
 Clearly bring the difference between :
 A. EBS and S3

43
Amity School of Engineering & Technology

Elastic Load Balancing


 Elastic Load Balancing automatically distributes incoming application traffic
across multiple targets, such as Amazon EC2 instances, containers, IP
addresses, Lambda functions, and virtual appliances.

 It can handle the varying load of your application traffic in a single Availability
Zone or across multiple Availability Zones.

 Elastic Load Balancing offers four types of load balancers that all feature the
high availability, automatic scaling, and robust security necessary to make your
applications fault tolerant.

44
Amity School of Engineering & Technology

Elastic Load balancer

45
Amity School of Engineering & Technology

Accessing Elastic Load Balancing


 You can create, access, and manage your load balancers using any of the
following interfaces:

 AWS Management Console— Provides a web interface that you can use to
access Elastic Load Balancing.

 AWS Command Line Interface (AWS CLI) — Provides commands for a broad
set of AWS services, including Elastic Load Balancing. The AWS CLI is
supported on Windows, macOS, and Linux. For more information, see AWS
Command Line Interface.

 AWS SDKs — Provide language-specific APIs and take care of many of the
connection details, such as calculating signatures, handling request retries, and
error handling. For more information, see AWS SDKs.

46
Amity School of Engineering & Technology

Accessing Elastic Load Balancing


 Query API— Provides low-level API actions that you call using HTTPS
requests. Using the Query API is the most direct way to access Elastic Load
Balancing. However, the Query API requires that your application handle low-
level details such as generating the hash to sign the request, and error handling.
For more information, see the following:

 Application Load Balancers and Network Load Balancers

 Classic Load Balancers

47
Amity School of Engineering & Technology

Use cases of Load Balancer


 Modernize applications with serverless and containers : Scale modern
applications to meet demand without complex configurations or API gateways.

 Improve hybrid cloud network scalability : Load balance across AWS and
on-premises resources using a single load balancer.

 Retain your existing network appliances : Deploy network appliances from


your preferred vendor while taking advantage of the scale and flexibility of the
cloud.

48
Amity School of Engineering & Technology

Load balancer benefits


 A load balancer distributes workloads across multiple compute resources, such
as virtual servers. Using a load balancer increases the availability and fault
tolerance of your applications.

 You can add and remove compute resources from your load balancer as your
needs change, without disrupting the overall flow of requests to your
applications.

49
Amity School of Engineering & Technology

CloudWatch
 Amazon CloudWatch is a monitoring and observability service built for
DevOps engineers, developers, site reliability engineers (SREs), and IT
managers. CloudWatch provides you with data and actionable insights to
monitor your applications, respond to system-wide performance changes,
optimize resource utilization, and get a unified view of operational health.

 CloudWatch collects monitoring and operational data in the form of logs,


metrics, and events, providing you with a unified view of AWS resources,
applications, and services that run on AWS and on-premises servers.

 You can use CloudWatch to detect anomalous behavior in your environments,


set alarms, visualize logs and metrics side by side, take automated actions,
troubleshoot issues, and discover insights to keep your applications running
smoothly.

50
Amity School of Engineering & Technology

CloudWatch

51
Amity School of Engineering & Technology

Amazon CloudWatch

52
Amity School of Engineering & Technology

Amazon CloudWatch

53
Amity School of Engineering & Technology

Amazon CloudWatch

54
Amity School of Engineering & Technology

CloudWatch Working

55
Amity School of Engineering & Technology

Amazon CloudWatch

56
Amity School of Engineering & Technology

CloudWatch Working
 Amazon CloudWatch is basically a metrics repository. An AWS service—such
as Amazon EC2—puts metrics into the repository, and you retrieve statistics
based on those metrics. If you put your own custom metrics into the repository,
you can retrieve statistics on these metrics as well.

 You can use metrics to calculate statistics and then present the data graphically
in the CloudWatch console.

 You can configure alarm actions to stop, start, or terminate an Amazon EC2
instance when certain criteria are met. In addition, you can create alarms that
initiate Amazon EC2 Auto Scaling and Amazon Simple Notification Service
(Amazon SNS) actions on your behalf.

 AWS Cloud computing resources are housed in highly available data center
facilities. To provide additional scalability and reliability, each data center
facility is located in a specific geographical area, known as a Region.
57
Amity School of Engineering & Technology

CloudWatch Working
 Each Region is designed to be completely isolated from the other Regions, to
achieve the greatest possible failure isolation and stability. Metrics are stored
separately in Regions, but you can use CloudWatch cross-Region functionality
to aggregate statistics from different Regions.

To visualize and analyze CloudWatch cost and usage data


 Sign in to the Cost Explorer console at https://console.aws.amazon.com/cost-
management/home#/custom.

 Under FILTERS, for Service, select CloudWatch.

 For Group by, choose Usage Type. You can also group your results by other
categories, such as the following:

 API Operation – See which API operations generated the most costs.

 Region – See which Regions generated the most costs. 58


Amity School of Engineering & Technology

Amazon CloudWatch pricing


 CloudWatch is available in free and paid tiers. The free tier includes limited
monitoring metrics, API requests, dashboards, alarms, log data, events,
contributor insights and canary runs.

 Like other cloud services, the paid tier follows a pay-as-you-go pricing
structure that is billed monthly. Pricing is based on the quantity of metrics,
APIs and metric streams used.

59
Amity School of Engineering & Technology

CloudWatch-Benefits
 Observability on a single platform across applications and infrastructure.

 Easiest way to collect metrics in AWS and on-premises

 Improve operational performance and resource optimization

 Get operational visibility and insight

 Derive actionable insights from logs

60
Amity School of Engineering & Technology

Amazon CloudWatch use cases


 CloudWatch collects data for operational and monitoring purposes with a
unified view and can deploy automated responses to monitored metrics
reaching a specified threshold. More broadly, CloudWatch is used for the
following tasks:

 to help fix operational issues and optimize performance using log analytics

 monitor AWS applications in the cloud or on premises

 monitor and troubleshoot the AWS infrastructure

 optimize system resources.

61
Amity School of Engineering & Technology

Challenges of CloudWatch
 costs more than most third-party monitoring and log tools.

 many standard AWS metrics cannot be seen in units smaller than one-minute
intervals.

 advanced integration is mostly limited to AWS resources.

 more advanced use of CloudWatch can have a high learning curve.

62
Amity School of Engineering & Technology

Amazon CloudWatch

63
Amity School of Engineering & Technology

Amazon CloudWatch

64
Amity School of Engineering & Technology

Amazon CloudWatch

65
Amity School of Engineering & Technology

CloudWatch vs. CloudTrail


 CloudWatch and CloudTrail are both monitoring services for AWS resources
and applications.

 AWS CloudWatch is a service that monitors system performance for AWS


applications and resources, and AWS CloudTrail is a web service that monitors
the activity within the AWS environment through tracking API calls.

66
Amity School of Engineering & Technology

Amazon Auto Scaling


 Amazon EC2 Auto Scaling helps you ensure that you have the correct number
of Amazon EC2 instances available to handle the load for your application.

 You create collections of EC2 instances, called Auto Scaling groups.

67
Amity School of Engineering & Technology

AWS Elastic Beanstalk


 AWS Elastic Beanstalk is an easy-to-use service for deploying and scaling web
applications and services developed with Java, .NET, PHP, Node.js, Python,
Ruby, Go, and Docker on familiar servers such as Apache, Nginx, Passenger,
and IIS.

 You can simply upload your code and Elastic Beanstalk automatically handles
the deployment, from capacity provisioning, load balancing, auto-scaling to
application health monitoring.

68
Amity School of Engineering & Technology

AWS Elastic Beanstalk


 Benefits
 Fast and simple to begin
 Developer productivity
 Impossible to outgrow
 Complete resource control

69

You might also like