0% found this document useful (0 votes)
18 views31 pages

ACTE Module 2 Resource

Module 2 of AWS Compute focuses on Amazon EC2, serverless computing, and AWS Lambda. It covers the EC2 instance lifecycle, benefits of EC2, serverless architecture, and how to choose the right computing service based on specific needs. The module includes hands-on labs to apply theoretical knowledge in practical settings.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
18 views31 pages

ACTE Module 2 Resource

Module 2 of AWS Compute focuses on Amazon EC2, serverless computing, and AWS Lambda. It covers the EC2 instance lifecycle, benefits of EC2, serverless architecture, and how to choose the right computing service based on specific needs. The module includes hands-on labs to apply theoretical knowledge in practical settings.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 31

AWS Compute

Module 2

26
Units OVERVIEW : MODULE 02
2.1 Introduction to Amazon Elastic
Compute Cloud (EC2)
AWS Compute
2.2 Amazon EC2 Instance Lifecycle
2.3 What is Serverless? Learning Outcomes
2.4 Introduction to AWS Lambda
2.5 Choose the Right Computing Service
• Define Amazon EC2 and understand its significance in AWS computing
2.6 Hands-on Lab: Launch a Sample
Application on Amazon EC2 • Comprehend the lifecycle of an Amazon EC2 instance, including launching stopping, and
terminating
• Define serverless computing and identify its advantages and use cases
• Explore AWS Lambda as a serverless computing service and its event-driven architecture
• Evaluate and choose the appropriate AWS computing service based on specific requirements
• Apply theoretical knowledge in a practical setting by launching a sample application on Amazon
EC2
• Gain hands-on proficiency in setting up and managing computing resources on AWS

27
Lesson Learning Outcomes LESSON OVERVIEW
✓ Define Amazon EC2 and its significance in
AWS computing services MODULE 2 INTRODUCTION TO AWS COMPUTE
✓ Grasp the key features and capabilities of
EC2 for scalable and flexible computing
✓ Articulate the benefits of using Amazon
Lesson 2.1 Introduction to Amazon Elastic Compute Cloud (EC2)
EC2, including scalability and cost-
effectiveness
✓ Understand the role of EC2 Security
• EC2 Overview
Groups in network security and learn to • Benefits of EC2
configure them
✓ Explore the pricing options for EC2 • EC2 Security Group
instances and understand the factors
influencing costs
• EC2 Pricing Options
✓ Gain the ability to make informed
decisions on choosing EC2 instances
based on specific requirements

28
2.1

Introduction to Amazon
Elastic Compute Cloud (EC2)
Amazon Elastic Compute Cloud (EC2) provides on-demand, scalable computing capacity in the AWS Cloud.
Using Amazon EC2 reduces hardware costs so you can develop and deploy applications faster.

29
Introduction to Amazon Elastic Compute Cloud (EC2)

EC2 Overview

AWS EC2

Amazon Elastic Compute Cloud (EC2) is a web service that provides resizable
compute capacity in the cloud. In other words virtual machine in the AWS Cloud
environment. It reduces the time required to obtain and start the new server in
a minute.

AWS EC2 also allows you to quickly scale capacity, both up and down, as your
computing requirements.

30
Introduction to Amazon Elastic Compute Cloud (EC2)

Benefits of EC2

Scalability Elastic Web


Scale
Computing
EC2 allows you to easily scale your compute capacity up or down based on
demand. You can add or remove instances to handle varying workloads Inexpensive Flexible

efficiently.

Flexibility and Variety EC2

EC2 provides a wide range of instance types optimized for different use cases, Secure Scalable
including general-purpose, compute-optimized, memory-optimized, and
storage-optimized instances.
Reliable

31
Introduction to Amazon Elastic Compute Cloud (EC2)

Benefits of EC2

Elasticity Elastic Web


Scale
Computing
EC2 allows you to easily resize our compute capacity up or down based on
demand. Inexpensive Flexible

Reliability
EC2
EC2 is available in multiple AWS regions worldwide, allowing you to deploy
instances closer to your end-users for reduced latency and improved Secure Scalable
performance.
Reliable

32
Introduction to Amazon Elastic Compute Cloud (EC2)

Benefits of EC2

Security Elastic Web


Scale
Computing
EC2 allows us to configure multiple levels of security.
Access level, Security Group, and Network ACL. Inexpensive Flexible

Cost Efficiency
EC2
EC2 operates on a pay-as-you-go pricing model, allowing you to pay only for
the computing capacity you consume Secure Scalable

Reliable

33
Introduction to Amazon Elastic Compute Cloud (EC2)

EC2 Security Group

Security Group

It is an instance-level virtual firewall for EC2 to control incoming and outgoing


traffic.
Allowed Ports & IP Address AWS EC2 Instance

By default, everything is blocked. To communicate with EC2 need to add rules


for Inbound and Outbound Traffic
Denied PORTS & IP Address

34
Introduction to Amazon Elastic Compute Cloud (EC2)

EC2 Pricing Options

On-Demand
Pay by the hour or second, Depending upon the instance type

Reserved
Reserved capacity for 1 or 3 years contracts up to 72% discount on the hourly
charge.

Spot
Purchase unused capacity at a discount of up to 90%.

Dedicated Host
A physical EC2 server is dedicated for our use. Most expensive option.

35
Introduction to Amazon Elastic Compute Cloud (EC2)

SUMMARY

✓ Amazon EC2 was introduced as a key AWS service for scalable ✓ Various pricing options are available for EC2 instances
and flexible computing ✓ The factors influencing EC2 pricing and how to optimize costs
✓ Fundamental role that EC2 plays in providing virtual computing based on specific needs
resources
✓ Advantages and benefits of using EC2, emphasizing its
scalability, flexibility, and cost-effectiveness
✓ How EC2 addresses diverse computing requirements for
businesses and individuals
✓ The concept of EC2 Security Groups was explained,
emphasizing their importance in network security
✓ How to configure and manage EC2 Security Groups to control
inbound and outbound traffic

36
Introduction to Amazon Elastic Compute Cloud (EC2)

Resources

✓ https://aws.amazon.com/ec2/
✓ https://www.sndkcorp.com/amazon-ec2
✓ https://docs.aws.amazon.com/vpc/latest/userguide/vpc-security-groups.html
✓ https://aws.amazon.com/ec2/pricing/

37
Lesson Learning Outcomes LESSON OVERVIEW
✓ Define and explain the lifecycle stages of
Amazon EC2 instances MODULE 2 INTRODUCTION AWS COMPUTE
✓ Develop a comprehensive understanding
of the different states an EC2 instance Lesson 2.2 Introduction Amazon EC2 Instance Lifecycle
can go through
✓ Identify and differentiate between the
various states an EC2 instance can exist
in • EC2 Instance different states
✓ Demonstrate the ability to interpret the
status of an EC2 instance based on its
current state

38
2.2

Introduction Amazon EC2 Instance


Lifecycle
Amazon EC2 instances go through various states during their lifecycle

39
Introduction Amazon EC2 Instance Lifecycle

EC2 Instance Different States

40
Lesson Learning Outcomes LESSON OVERVIEW
✓ Define the concept of serverless
computing MODULE 2 INTRODUCTION TO AWS COMPUTE
✓ Understand the fundamental idea of
serverless and its implications for Lesson 2.3 What is Serverless?
application development
✓ Identify how serverless computing differs
from traditional server-based models
✓ Articulate the advantages and benefits of
• Serverless Overview
adopting serverless computing • Benefits of Serverless
✓ Understand the applicability of serverless
in various use cases and industries • Example of Serverless Services

41
2.3

What is Serverless?
Amazon Serverless computing is a cloud computing model that allows developers to
build and run applications without managing the underlying infrastructure.

42
What is Serverless?

Serverless Overview

Serverless

Serverless architecture is a way to build and run applications and services


without having to manage infrastructure. Your application still runs on servers,
but all the server management is done by AWS.

No longer have to provision, scale, and maintain servers to run applications,


databases, and storage systems.

43
What is Serverless?

Benefits of Serverless

Benefit from a fully Only pay for


Scale flexibly
managed service resources you use

Enhance developer Seamless Develop Intelligent


productivity Connections Apps

44
What is Serverless?

Example of Serverless Services

AWS Lambda
Lambda is a serverless compute service that enables you to run code
without provisioning or managing servers.

AWS App Runner


AWS App Runner is a fully managed service that makes it easy to build,
deploy, and scale web applications quickly.

AWS Fargate
AWS Fargate is a serverless compute engine for containers that allows you
to run containers without having to manage the underlying infrastructure

45
What is Serverless?

Resources

✓ https://aws.amazon.com/serverless/
✓ https://www.serverless.com/aws-lambda
✓ https://aws.amazon.com/what-is/serverless-computing/

46
Lesson Learning Outcomes LESSON OVERVIEW
✓ Understand how AWS Lambda facilitates
the execution of code without the need to MODULE 2 INTRODUCTION TO AWS COMPUTE
manage servers
✓ Identify and explain the key features and Lesson 2.4 Introduction to AWS Lambda
characteristics of AWS Lambda
✓ Recognize how AWS Lambda supports
event-driven and serverless application
architectures • AWS Lambda
• How Aws Lambda works

47
2.4

Introduction to AWS Lambda


Run Code Without Provisioning or Managing Infrastructure With AWS Lambda

48
Introduction to AWS Lambda

Overview

You can run code for virtually any type of application


or backend service.

This includes

✓ Data Processing
✓ Real-time Stream Processing
✓ Machine Learning
✓ WebSocket
✓ IoT Backends
✓ Mobile Backends
✓ Web Applications

49
Introduction to AWS Lambda

How AWS Lambda works

The Lambda function is the foundational principle of AWS Lambda. There are options for configuring Lambda functions using the Lambda
console, Lambda API, AWS CloudFormation, or AWS Serverless Application Model (AWS SAM). We can invoke a function directly by using the
Lambda API or configure an AWS service or resource to invoke your function in response to an event.

✓ Function
✓ Tigger
✓ Event
✓ Application Environment
✓ Deployment Packages
✓ Runtime

50
Introduction to AWS Lambda

Resources

✓ https://aws.amazon.com/serverless/
✓ https://www.serverless.com/aws-lambda
✓ https://aws.amazon.com/what-is/serverless-computing/

51
Lesson Learning Outcomes LESSON OVERVIEW
✓ Define and categorize various AWS
compute services. MODULE 2 INTRODUCTION TO AWS COMPUTE
✓ Understand the differences and use cases
for services such as EC2, Lambda, and Lesson 2.5 Choose the Right Computing Service
others.
✓ Understand the variety of EC2 instances
available.
✓ Recognize different instance families,
• Understanding the type of AWS Compute Services
types, and sizes based on computing • Type of EC2 Instances
requirements

52
2.5

Choose the Right Computing Service

53
Choose the Right Computing Service

Understanding the Type of AWS Compute Services

Amazon EC2 AWS Fargate


Use Case: Virtual servers in the cloud for running applications Use Case: Serverless compute engine for containers.

AWS Lambda AWS Elastic Beanstalk


Use Case: Serverless computing for event-driven applications. Use Case: Fully managed platform-as-a-service (PaaS) for
application deployment.
Amazon ECS (Elastic Container Service)
Use Case: Container orchestration service for managing Docker Amazon LightSail
containers Use Case: Simple virtual private servers with pre-configured options.

Amazon EKS (Elastic Kubernetes Service)


Use Case: Managed Kubernetes service for container orchestration.

54
Choose the Right Computing Service
Type of EC2 Instances

Family Specialty Use Case


F1 Field Programmable Gate Array Genomics research, financial analytics, real-time video processing, big data etc

I3 High Speed Storage NoSQL DBs, Data Warehousing etc

G3 Graphics Intensive Video Encoding/ 3D Application Streaming Map

H1 High Disk Throughput Reduce-based workloads, distributed file systems such as HDFS and Map R-FS

T3 Lowest Cost, General Purpose Web Servers/Small DBs

D2 Dense Storage Fileservers/Data Warehousing/Hadoop

R5 Memory Optimized Memory Intensive Apps/DBs

M5 General Purpose Application Servers

C5 Compute Optimized CPU Intensive Apps/DBs

P3 Graphics/General Purpose GPU Machine Learning, Bit Coin Mining etc

X1 Memory Optimized SAP HANA/Apache Spark etc

Z1D High compute capacity and a high memory footprint. Ideal for electronic design automation (EDA)and certain relational database workloads with high per-core licensing costs

A1 Arm-based work loads Scale-out workloads such as web servers

U-6tb1 Bare Metal Bare metal capabilities that eliminate virtualization overhead

55
2.6

Hands-On Lab
Launch a Sample Application on Amazon EC2

56

You might also like