AWS Compute Services - Educative
AWS Compute Services - Educative
Compute Services
• Scalable and flexible computational resources
• Host applications, process data, and manage workloads
Launch Instance
Root Volume
Increasing traffic
Primary DB instance
Upload Media
Lightsail Object
Storage
AWS Batch
• Fully managed service for running batch computing workloads at scale
• Manages jobs with job queues, compute environments, and job life cycle management
AWS Batch
5x faster
Resource
Scale Resources
Management
Submit Jobs
Report Compute Compute
Job Queue
1.6x faster Requirements Environment
Job
Submit Jobs Execute Job
Scheduler
2x faster 2x faster
• Automatically provisions compute resources, schedules jobs, and handles dependencies and
scaling
• Simplifies batch processing, optimizes resource use, and reduces operational overhead with
automatic scaling and job scheduling
AWS Compute Services
Region
VPC
Batch
CE1
Job Queue 1
Containers
• Resource-efficient, portable across environments, scalable with automated management,
and ensure consistent application environments
• Ideal for deploying microservices, streamlining CI/CD pipelines, and running high-density
applications
Amazon Elastic Container Service (ECS)
• Supports Docker containers
• Provides cluster management, scheduling, load balancing, and Auto Scaling
ECR
Registry
ECS
VPC
ECS Cluster
Availability Zone 1
Fargate
Logs
Task definition
Task Task Task
Logs
Service description Task Task Task
Service
AWS Cloud
ECS Task ECS Task ECS Task ECS Task ECS Task
(container) (container) (container) (container) (container)
Image
Repository B
Image
ECR Repository Amazon Repository A ECR Repository Amazon
Policy ECR Policy ECR
Image
Repository C
VPC
Container A
2
5
1
Container B
AWS CLI Amazon
or other tool ECS
Container C
AWS Cloud
EKS Cluster
EKS Distro-based Pods Pods
Cluster (container) (container)
• Cluster Management
• Audit Trial Reporting
• Compliance
Physical or Virtual • Config Policies, etc.
Machines
AWS Fargate
• Serverless compute engine for running containers
• Supports Docker containers
• Integrates with ECS and EKS
• Ideal for running microservices, batch processing, and containerized applications
With Fargate
Build container Define memory and Run and manage Pay for requested
AWS Fargate
image compute resources applications compute resources when
required used. Application isolation
by design
Add a source Configure build and Review and create Receive a secure URL
Connect to your source service settings Review and verify all Review a secure URL
AWS App Runner Configure your container
code or container your settings. Create of your running
image and select vCPU and memory and and deploy your service production-ready
deployment select auto scaling and service from AWS APP
health check options Runner
AWS Compute Services
Serverless
• Builds and runs applications without managing servers
• Cost-effective solution for automating tasks
Lambda
• Automatically runs code in response to events and triggers without managing servers
• Allows custom runtimes for languages not natively supported by Lambda, enabling flexibility
in runtime environments
• Reduces operational overhead, provides automatic scaling, offers pay-as-you-go pricing, and
simplifies application development
• Executes code in response to events from various sources such as S3, DynamoDB, Kinesis,
API Gateway, and CloudWatch
AWS Cloud
Microservice application
Region
Availability Zone 1 Availability Zone 2 Local Zone
us-east-1-dfw-1a
VPC
Private subnet Private subnet Private subnet
AWS Compute Services
AWS Outposts
• Fully managed, configurable compute and storage racks that extend AWS infrastructure to
on-premises locations
• Provides seamless integration with AWS cloud services, offers consistent APIs and tools, and
supports a wide range of AWS services on-premises
• Simplifies compliance and data residency requirements
Internet
VPC
Private subnet
Internet
gateway Internet Local Network
Public subnet
EC2 Instance
Outpost Instance
DynamoDB
Outposts
S3 bucket
AWS Wavelength
• Brings AWS services to the edge of telecommunications networks, enabling ultra-low latency
applications for mobile and connected devices
• Integrates with AWS services like EC2 and Lambda, and supports high-bandwidth and
low-latency applications
VPC
Public subnet Public subnet Public subnet
The internet
CSP network
AWS Compute Services
Pricing in Compute Services
Service Pricing
Amazon Elastic Pay for compute capacity by the hour or second without long-term
Compute Cloud (EC2) commitments
Bid for unused EC2 capacity at lower prices, 90% off compared to
Amazon EC2 Spot
on-demand pricing
Amazon EC2 Auto
No fees other than the resources that you use
Scaling
AWS Elastic
No fees other than the resources that you use
Beanstalk
Predictable monthly price models depending on the computational
Amazon Lightsail
resources
Amazon Elastic Charges per GB for storage, applies standard data transfer rates
Container Registry for transfer out of ECR, and has a set fee for vulnerability scans
(ECR) per image
Amazon Elastic Depends on the launch type, charging for vCPU and memory with
Container Service Fargate, or EC2 instance costs, along with additional charges for
(ECS) data transfer and ECR integration
Amazon Elastic Charged per hour for the control plane, with additional charges for
Kubernetes EC2 worker nodes, Fargate, storage, load balancers, and data
Service (EKS) transfer based on usage
Charged per hour for each on-premises instance managed by ECS
Amazon ECS Anywhere, with charges based on the time the instance is connected
Anywhere to the ECS control plane, plus potential AWS Systems Manager and
data transfer fees
Amazon EKS Amazon EKS Anywhere is free, but support costs $24,000 per cluster
Anywhere per year (or $2,000 per month)
Charged on the amount of vCPU and memory allocated to your
AWS Fargate tasks and how long they run, additional charges occur for data
transfer
Charged for the compute and memory resources used by your
AWS App Runner
application along with the number of requests and data transferred
$0.20 per 1 million requests beyond the free tier, other charges
AWS Lambda
include data transfer and execution time
Charged based on the configuration of the Outpost unit, including
AWS Outposts compute, storage, and networking resources, additional charges
occur for data transfers between Outpost and AWS regions
Charged for resources used in Wavelength Zones, EC2 instances,
AWS Wavelength and data transfer within Wavelength Zones and between them and
the AWS Cloud
Charged for Local Zones infrastructure, EC2 instances, and data
AWS Local Zones
transfer between Local Zones and other AWS services