STCLOUD_mod6_compute FULL MAYBE

original file

Module 6 Section 1: Compute Services Overview

i came late to this class, he was already talking about CT Templates under Amazon Compute Services

Amazon Compute Services

../_attachments/Pasted image 20250729220805.png

note: managed vs unmanaged

bolded - covered in the module

  1. Amazon EC2 - VMs
  2. Amazon EC2 Autoscaling
  3. Amazon Elastic Container Registry (Amazon ECR) - Container Templates, repository of many different kinds of containers, fully managed service that takes care of different kinds of containers
  4. Amazon Elastic Container Service (Amazon ECS) - Containers, fully managed orchestration service, helps run and manage containerized applications
  5. VMware Cloud on AWS
  6. AWS Elastic Beanstalk - Orchestration
  7. AWS Lambda - Serverless compute (just run your code)
  8. Amazon Elastic Kubernetes Services (Amazon EKS) - Open source Container Product, Fargate is a product from AWS, EKS lets you use the open source service already
  9. Amazon Lightsail - Web app
  10. AWS Batch
  11. AWS Fargate - managed containers, serverless compute engine for containers, we just manage the container itself nalang
  12. AWS Outposts - on premises
  13. AWS Serverless Application Repository
What's the point?

There are so many services offered for your use case as a customer of AWS/cloud

Categorizing Compute Services

  1. VMs
  2. Serverless
  3. Containers
  4. Orchestration
Services Key concepts Characteristics Ease of Use
Amazon EC2

- VMs are hardware virtualization
- infrastructure as a service (IaaS)
- instance-based
- virtual machines for control and flexibility
- VMs can do almost everything
provision virtual machines that you can manage as you choose a familiar concept to many professionals
AWS Lambda

- example: if you wanna backup your server every month
- on-demand function calls
- serverless computing (run code or scripts without managing a server)
- function-based
- low-cost
- select what language you like and then input your code or script
- write and deploy code that runs on a schedule or that can be triggered by events
- use when possible (architect for the cloud)
a relatively new concept for many IT staff members, but easy to use after you learn how
Amazon ECS, EKS, Fargate, ECR

- containers are OS virtualization; containers are for apps
- container-based computing (lightweight and fast)
- instance-based
spin up and run jobs more quickly AWS Fargate reduces administrative overhead but you can use options that give you more control
Amazon Elastic Beanstalk

- orchestration
- ex. if you're a developer who doesn't know how to handle operations or deployment or infrastructure side but you want a website that will automatically load balance various machines and a DB
- Platform as a Service (PaaS)
- for web applications (orchestration and ease in deployment)
- setup the things you like and then everything else will be handled automatically
- focus on your code (building your application)
- can easily tie into other services (databases, domain name system, etc.)
fast and easy to get started

Choosing the Optimal Compute Service

if you're happy using cloud → you use more

Module 6 Section 2: Amazon EC2 (VMs)

11:03

Amazon Elastic Compute Cloud (Amazon EC2)

../_attachments/Pasted image 20250729232033.png

../_attachments/Pasted image 20250729232118.png

Amazon Elastic Compute Cloud (Amazon EC2) Overview

EC2/VMs: Selecting an Instance Type

EC2/VMs Instance type naming and sizes

../_attachments/Pasted image 20250729234751.png

Select instance type based on use case

Category General Purpose Compute Optimized Memory Optimized Accelerated Computing Storage Optimized
Instance types a1, m4, m5, t2, t3 c4, c5 r4, r5, x1, z1 f1, g3, g4, p2, p3 d2, h1, i3
Use Case Broad High performance in-memory databases machine learning distributed file systems
comment generic use-case, default choice CPU-heavy, non-GPU compute big data, in-memory database, makes DB queries REALLY fast floating point, linear algebra, graphics large storage, fast I/O or IOPS (I/O per second), fast read/write access

../_attachments/Pasted image 20250730000436.png

EC2/VMs: User Data Script (Optional)

../_attachments/Pasted image 20250730000428.png

EC2/VMs: Specify Storage

EC2/VMs: storage options

there are two options for the root disk storage option

EC2/VMs: Example Storage Options

../_attachments/Pasted image 20250730003120.png

EC2/VMs: Console view of running EC2 instance (web GUI aka management console)

../_attachments/Pasted image 20250730003308.png

EC2/VMs: launching an EC2 instance with the AWS Command Line Interface

../_attachments/Pasted image 20250730003446.png

../_attachments/Pasted image 20250730003456.png

EC2/VMs: Amazon EC2 instance lifecycle

EC2/VMs: Check your understanding

../_attachments/Pasted image 20250730003702.png

Module 6 Section 3: Amazon EC2 Cost Optimization

30:26

Amazon EC2 Pricing Models

Per second Billing is available for On-Demand Instances, Reserved Instances, and Spot Instances that run Amazon Linux or Ubuntu

Amazon EC2 Pricing Models: Benefits and Use Cases

On-Demand Instances Spot Instances Reserved Instances Dedicated Hosts
Benefits - low cost, flexibility
- good for short term
- for auto scaling
- if you have a "spiky pattern" of usage
- large scale, dynamic workload
- time insensitive
- lowest cost
- predictability ensures compute capacity is available when needed
- for long term
- good for constant use or baseline resource needs
- save money on licensing costs
- help meet compliance and regulatory requirements
- rent the whole physical server
- no "noisy neighbor" since whole server is dedicated (to you)
spiky workloads time-insensitive workloads steady-state workloads highly sensitive workloads
Sample Use cases - short-term, spiky, or unpredictable workloads
- application development or testing
- applications with flexible start and end times
- applications only feasible at very low compute prices
- users with urgent computing needs for large amounts of additional capacity
- steady state or predictable workloads
- applications that require reserved capacity, including disaster recovery
- users able to make upfront payments to reduce total computing costs even further
- bring your own license
- compliance and regulatory restrictions
- usage and licensing tracking
- control instance placement

The 4 pillars of cost optimization

practices to help reduce cost

  1. Right size
  2. Increase elasticity
  3. Optimal Pricing Model
  4. Optimize storage choices

Pillar 1: Right Size

Pillar 2: Increase Elasticity

Pillar 3: Optimal Pricing Model

examples

Pillar 4: Optimize Storage Choices

Cost Estimation Summary: Measure, monitor, improve

recording ended here