Communit
y
AWS Community
How To Save Resources With the
Terraform Module for AWS Spot
Instances
Vladimir Cageyv Samoylov
AWS Community
Key Takeaway
- What is EC2 Spot Instances and how it works
- The true cost of Spot Instances
- How we could programmatically get the max-price value
A Christmas Story and Huge Demand
for EC2
AWS Community
A December Surprise: Double the Payment for
AWS Spot Instances
Amazon EC2 Spot Instances
Who are you?
AWS EC2 Spot Instance = Unused
EC2 at a low price
More info: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/using-spot-instances.html
Interrupt readiness
AWS Community
2 minute termination notice. EC2 meta-data and
EventBridge
More info: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/spot-instance-termination-
notices.html
AWS Community
The Fault Injection Simulator can simulate
termination notices
More info: https://aws.amazon.com/fis/
Resilience and Elasticity with EC2
Auto Scaling Group
Using different Instance Types and
AZs increases launch chances
Spot Instance Advisor
More info: https://aws.amazon.com/ec2/spot/instance-advisor/
AWS Community
Spot Instance Advisor. Example
Allocation strategies for Spot Instances
More info: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-fleet-allocation-
strategy.html
AWS Community
Allocation strategies for Spot Instances
- price-capacity-optimized !!!
- capacity-optimized
- lowest-price
More info: https://aws.amazon.com/blogs/compute/introducing-price-capacity-optimized-
allocation-strategy-for-ec2-spot-instances/
Resilience with Capacity rebalance.
Get new EC2 in advance.
More info: https://ec2spotworkshops.com/ec2-auto-scaling-with-multiple-instance-types-and-
purchase-options/spot_resilience.html
AWS Community
EC2 Autoscaling Capacity rebalance
More info: https://github.com/awslabs/ec2-spot-labs/tree/master/ec2-spot-interruption-handler
Spot Instance Pricing
How much will I have to pay?
AWS Community
Cost Explorer
AWS Community
Spot Instance data feed
More info: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/spot-data-feeds.html
Charge = Spot Price
Spot Instance pricing history
More info: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/using-spot-instances-
history.html
AWS Community
Spot price history (example from docs)
AWS Community
Spot price history (December expectations)
Spot Max Price
More info: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/spot-requests.html#using-
spot-instances-request (step 10 in new console example)
What will happen if the Spot Max Price
is not specified?
More info: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/spot-requests.html#using-
spot-instances-request (step 10 in new console example)
What next? No more Spot Instances?
AWS Community
AWS CLI: aws ec2 describe-spot-price-history
More info: https://awscli.amazonaws.com/v2/documentation/api/latest/reference/ec2/describe-
spot-price-history.html
AWS Community
AWS API: EC2 DescribeSpotPriceHistory
More info:
https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_DescribeSpotPriceHistory.html
AWS Community
Terraform Module: ec2-spot-price
More info: https://github.com/fivexl/terraform-aws-ec2-spot-price
AWS Community
Initial data
AZ  Type r5.2xlarge r5d.2xlarge r5a.2xlarge
eu-central-1a 0.20 0.20 0.20
eu-central-1b 0.20 0.15 0.10
eu-central-1c 0.20 0.30 0.25
*These prices are not real prices for EC2 Spot Instance
AWS Community
Example: All Instance Types in all AZs with
increased reliability.
module "ec2_spot_price" {
source = "fivexl/ec2-spot-price/aws"
version = "2.0.0"
instance_types_list = ["r5.2xlarge", "r5d.2xlarge", "r5a.2xlarge"]
availability_zones_names_list = ["eu-central-1a", "eu-central-1b", "eu-central-1c"]
сustom_price_modifier = 1.1
}
output "spot_price_current_max_mod" {
value = module.ec2_spot_price.spot_price_current_max_mod
}
Result: 0.33
AWS Community
Example: Cheapest as possible
module "ec2_spot_price" {
source = "fivexl/ec2-spot-price/aws"
version = "2.0.0"
instance_types_list = ["r5.2xlarge", "r5d.2xlarge", "r5a.2xlarge"]
availability_zones_names_list = ["eu-central-1a", "eu-central-1b", "eu-central-1c"]
}
output "spot_price_current_max_mod" {
value = module.ec2_spot_price.spot_price_current_min
}
Result: 0.10
EC2 Spot Instances use cases
Thank you
Contacts:
● https://t.me/cageyv
● https://cageyv.dev/
● https://github.com/cageyv/
● https://www.linkedin.com/in/vladimirsamoylov
/
Useful links:
● https://github.com/fivexl/terraform-aws-ec2-
spot-price
● https://aws.amazon.com/ru/ec2/spot/instance-
advisor/
● https://ec2spotworkshops.com/
● https://github.com/awslabs/ec2-spot-labs/
● https://github.com/aws/aws-node-
termination-handler
● https://docs.aws.amazon.com/AmazonECS/late
st/developerguide/container-instance-
spot.html

More Related Content

PDF
모두를 위한 하이브리드 클라우드 아키텍처 - 강동환, AWS 솔루션즈 아키텍트:: AWS Summit Online Korea 2020
PDF
다양한 솔루션으로 만들어가는 AWS 네트워크 보안::이경수::AWS Summit Seoul 2018
PDF
Fargate 를 이용한 ECS with VPC 1부
PDF
AWS Black Belt Techシリーズ Amazon SNS モバイルプッシュ
PDF
AWS 를 활용한 저지연 라이브 (Low Latency Live) 서비스 구현 - 류재춘 컨설턴트/에반젤리스트, GS Neot다 :: AW...
PDF
[AWS Innovate 온라인 컨퍼런스] Amazon Forecast를 통한 시계열 예측 활용하기 - 김종선, AWS 솔루션즈 아키텍트
PDF
[AWS Builders] AWS와 함께하는 클라우드 컴퓨팅
PDF
AWS Transit Gateway를 통한 Multi-VPC 아키텍처 패턴 - 강동환 솔루션즈 아키텍트, AWS :: AWS Summit ...
모두를 위한 하이브리드 클라우드 아키텍처 - 강동환, AWS 솔루션즈 아키텍트:: AWS Summit Online Korea 2020
다양한 솔루션으로 만들어가는 AWS 네트워크 보안::이경수::AWS Summit Seoul 2018
Fargate 를 이용한 ECS with VPC 1부
AWS Black Belt Techシリーズ Amazon SNS モバイルプッシュ
AWS 를 활용한 저지연 라이브 (Low Latency Live) 서비스 구현 - 류재춘 컨설턴트/에반젤리스트, GS Neot다 :: AW...
[AWS Innovate 온라인 컨퍼런스] Amazon Forecast를 통한 시계열 예측 활용하기 - 김종선, AWS 솔루션즈 아키텍트
[AWS Builders] AWS와 함께하는 클라우드 컴퓨팅
AWS Transit Gateway를 통한 Multi-VPC 아키텍처 패턴 - 강동환 솔루션즈 아키텍트, AWS :: AWS Summit ...

What's hot (20)

PDF
AWS 클라우드 핵심 서비스로 클라우드 기반 아키텍처 빠르게 구성하기 - 문종민 솔루션즈 아키텍트, AWS :: AWS Summit Seo...
PDF
컨테이너 및 서버리스를 위한 효율적인 CI/CD 아키텍처 구성하기 - 현창훈 데브옵스 엔지니어, Flex / 송주영 데브옵스 엔지니어, W...
DOCX
LEVIS
PDF
데브옵스 엔지니어를 위한 신규 운영 서비스 - 김필중, AWS 개발 전문 솔루션즈 아키텍트 / 김현민, 메가존클라우드 솔루션즈 아키텍트 :...
PPT
Auto Scaling on AWS
PPTX
PDF
AWS Direct Connect 및 VPN을 이용한 클라우드 아키텍쳐 설계:: Steve Seymour :: AWS Summit Seou...
PDF
[AWS Builders 온라인 시리즈] AWS, 최적의 비용 효율화 방법은? - 조효원, AWS Cloud Financial Manager
PPTX
Ensemble methods in machine learning
PDF
AWS Black Belt Online Seminar 2017 AWS WAF
PDF
AWS Summit Seoul 2023 | 가격은 저렴, 성능은 최대로! 확 달라진 Amazon EC2 알아보기
PDF
AWS Summit Seoul 2023 | 100만명이 사용하는 GenerativeAI 이루다를 만들면서 배운 것 : 스캐터랩의 AWS 활용법
PDF
[보험사를 위한 AWS Data Analytics Day] 1_데이터 경영으로 보험 산업의 ...
PDF
[AWS Builders] AWS 스토리지 서비스 소개 및 사용 방법
PDF
복잡한 권한신청문제 ConsoleMe로 해결하기 - 손건 (AB180) :: AWS Community Day Online 2021
PPTX
Introduction to EC2
PDF
[AWS Builders 온라인 시리즈] AWS 서비스를 활용하여 파일 스토리지 빠르게 마이그레이션 하기 - 서지혜, AWS 솔루션즈 아키텍트
PDF
AWS Summit Seoul 2023 | Amazon Neptune 및 Elastic을 이용한 추천 서비스 및 검색 플랫폼 구축하기
PDF
AWS Summit Seoul 2015 -CloudFront와 Route53 기반 콘텐츠 배포 전략 (GS네오텍-박정수)
PDF
AWS Summit Seoul 2023 | Amazon EKS, 중요한 건 꺾이지 않는 안정성
AWS 클라우드 핵심 서비스로 클라우드 기반 아키텍처 빠르게 구성하기 - 문종민 솔루션즈 아키텍트, AWS :: AWS Summit Seo...
컨테이너 및 서버리스를 위한 효율적인 CI/CD 아키텍처 구성하기 - 현창훈 데브옵스 엔지니어, Flex / 송주영 데브옵스 엔지니어, W...
LEVIS
데브옵스 엔지니어를 위한 신규 운영 서비스 - 김필중, AWS 개발 전문 솔루션즈 아키텍트 / 김현민, 메가존클라우드 솔루션즈 아키텍트 :...
Auto Scaling on AWS
AWS Direct Connect 및 VPN을 이용한 클라우드 아키텍쳐 설계:: Steve Seymour :: AWS Summit Seou...
[AWS Builders 온라인 시리즈] AWS, 최적의 비용 효율화 방법은? - 조효원, AWS Cloud Financial Manager
Ensemble methods in machine learning
AWS Black Belt Online Seminar 2017 AWS WAF
AWS Summit Seoul 2023 | 가격은 저렴, 성능은 최대로! 확 달라진 Amazon EC2 알아보기
AWS Summit Seoul 2023 | 100만명이 사용하는 GenerativeAI 이루다를 만들면서 배운 것 : 스캐터랩의 AWS 활용법
[보험사를 위한 AWS Data Analytics Day] 1_데이터 경영으로 보험 산업의 ...
[AWS Builders] AWS 스토리지 서비스 소개 및 사용 방법
복잡한 권한신청문제 ConsoleMe로 해결하기 - 손건 (AB180) :: AWS Community Day Online 2021
Introduction to EC2
[AWS Builders 온라인 시리즈] AWS 서비스를 활용하여 파일 스토리지 빠르게 마이그레이션 하기 - 서지혜, AWS 솔루션즈 아키텍트
AWS Summit Seoul 2023 | Amazon Neptune 및 Elastic을 이용한 추천 서비스 및 검색 플랫폼 구축하기
AWS Summit Seoul 2015 -CloudFront와 Route53 기반 콘텐츠 배포 전략 (GS네오텍-박정수)
AWS Summit Seoul 2023 | Amazon EKS, 중요한 건 꺾이지 않는 안정성
Ad

Similar to AWS Spot Pricing with Terraform [ENG 2023] (20)

PDF
gcp-for-aws-professionals-presentation.pdf
PPT
StartPad Countdown 8 - Amazon Web Services and You
PDF
A 60-minute tour of AWS Compute (November 2016)
PPTX
AWS Cost Control
PPTX
AWS Atlanta Meetup -AWS Spot Blocks and Spot Fleet
PDF
Amazon cloud intance launch
PDF
Amazon cloud intance launch3
PDF
Amazon cloud intance launch3
PDF
An introduction to Spot Instances and AWS Fleet - Webinar
PPT
Amazon S3 and EC2
PPTX
Leveraging elastic web scale computing with AWS
PDF
20 MUST KNOW things about Amazon EC2.pdf
PDF
Advanced Task Scheduling with Amazon ECS
PPTX
AWS Fargate AWS UG Dormund 2019 Kazulkin Jung
PPTX
ececloud Architecture for GWU's ECE 289 Class
PPTX
ececloud Architecture for GWU\'s ECE 289 Class
PPTX
Advanced Scheduling with Amazon ECS (September 2017)
PPTX
Aws meetup managed_nat
PDF
"AWS Fargate: Containerization meets Serverless" at AWS User Group Cologne 20...
gcp-for-aws-professionals-presentation.pdf
StartPad Countdown 8 - Amazon Web Services and You
A 60-minute tour of AWS Compute (November 2016)
AWS Cost Control
AWS Atlanta Meetup -AWS Spot Blocks and Spot Fleet
Amazon cloud intance launch
Amazon cloud intance launch3
Amazon cloud intance launch3
An introduction to Spot Instances and AWS Fleet - Webinar
Amazon S3 and EC2
Leveraging elastic web scale computing with AWS
20 MUST KNOW things about Amazon EC2.pdf
Advanced Task Scheduling with Amazon ECS
AWS Fargate AWS UG Dormund 2019 Kazulkin Jung
ececloud Architecture for GWU's ECE 289 Class
ececloud Architecture for GWU\'s ECE 289 Class
Advanced Scheduling with Amazon ECS (September 2017)
Aws meetup managed_nat
"AWS Fargate: Containerization meets Serverless" at AWS User Group Cologne 20...
Ad

More from Vladimir Samoylov (7)

PDF
MVP on AWS PostgreSQL. Common mistakes. How to avoid them?
PDF
Why is RDS not just an Open-Source PostgreSQL_ From Classic RDS to Aurora DSQL
PDF
Getting started with Amazon Bedrock IDE and Control Tower
PDF
AWS RDS Data API and CloudTrail. Who drop the table_.pdf
PDF
Increase Your Security Posture with Temporary Elevated Access and AWS IAM Ide...
PPTX
Security Basics in AWS or How To Get Rid of Hardcoded Credential and Reduce D...
PDF
AWS Spot pricing with Terraform
MVP on AWS PostgreSQL. Common mistakes. How to avoid them?
Why is RDS not just an Open-Source PostgreSQL_ From Classic RDS to Aurora DSQL
Getting started with Amazon Bedrock IDE and Control Tower
AWS RDS Data API and CloudTrail. Who drop the table_.pdf
Increase Your Security Posture with Temporary Elevated Access and AWS IAM Ide...
Security Basics in AWS or How To Get Rid of Hardcoded Credential and Reduce D...
AWS Spot pricing with Terraform

Recently uploaded (20)

PPTX
WEB_DEVELOPMENTGJMFGHJMGJMFJM FGJMFGHMNF
PPTX
power point presentation ofDracena species.pptx
PPTX
Phrases and phrasal verb for a small step.
PPTX
Paraphrasing Sentence To Make Your Writing More Interesting
PPTX
Phylogeny and disease transmission of Dipteran Fly (ppt).pptx
PDF
5_tips_to_become_a_Presentation_Jedi_@itseugenec.pdf
PPT
Comm.-100W-Writing-a-Convincing-Editorial-slides.ppt
PPTX
HOW TO HANDLE THE STAGE FOR ACADEMIA AND OTHERS.pptx
PPTX
Porpusive Communication for students 01.pptx
PDF
PM Narendra Modi's speech from Red Fort on 79th Independence Day.pdf
PPTX
Lesson 2 (Technology and Transmission) - Terms.pptx
PPTX
TG Hospitality workshop Vietnam (1).pptx
PPTX
3RD-Q 2022_EMPLOYEE RELATION - Copy.pptx
PPTX
CASEWORK Power Point Presentation - pointers
PPTX
2025-08-17 Joseph 03 (shared slides).pptx
PPTX
CASEWORK Pointers presentation Field instruction I
PPTX
Knowledge Knockout ( General Knowledge Quiz )
PPTX
Unit 8#Concept of teaching and learning.pptx
PPTX
CAPE CARIBBEAN STUDIES- Integration-1.pptx
PPTX
Lesson 1 (Digital Media) - Multimedia.pptx
WEB_DEVELOPMENTGJMFGHJMGJMFJM FGJMFGHMNF
power point presentation ofDracena species.pptx
Phrases and phrasal verb for a small step.
Paraphrasing Sentence To Make Your Writing More Interesting
Phylogeny and disease transmission of Dipteran Fly (ppt).pptx
5_tips_to_become_a_Presentation_Jedi_@itseugenec.pdf
Comm.-100W-Writing-a-Convincing-Editorial-slides.ppt
HOW TO HANDLE THE STAGE FOR ACADEMIA AND OTHERS.pptx
Porpusive Communication for students 01.pptx
PM Narendra Modi's speech from Red Fort on 79th Independence Day.pdf
Lesson 2 (Technology and Transmission) - Terms.pptx
TG Hospitality workshop Vietnam (1).pptx
3RD-Q 2022_EMPLOYEE RELATION - Copy.pptx
CASEWORK Power Point Presentation - pointers
2025-08-17 Joseph 03 (shared slides).pptx
CASEWORK Pointers presentation Field instruction I
Knowledge Knockout ( General Knowledge Quiz )
Unit 8#Concept of teaching and learning.pptx
CAPE CARIBBEAN STUDIES- Integration-1.pptx
Lesson 1 (Digital Media) - Multimedia.pptx

AWS Spot Pricing with Terraform [ENG 2023]

  • 1. Communit y AWS Community How To Save Resources With the Terraform Module for AWS Spot Instances Vladimir Cageyv Samoylov
  • 2. AWS Community Key Takeaway - What is EC2 Spot Instances and how it works - The true cost of Spot Instances - How we could programmatically get the max-price value
  • 3. A Christmas Story and Huge Demand for EC2
  • 4. AWS Community A December Surprise: Double the Payment for AWS Spot Instances
  • 5. Amazon EC2 Spot Instances Who are you?
  • 6. AWS EC2 Spot Instance = Unused EC2 at a low price More info: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/using-spot-instances.html
  • 8. AWS Community 2 minute termination notice. EC2 meta-data and EventBridge More info: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/spot-instance-termination- notices.html
  • 9. AWS Community The Fault Injection Simulator can simulate termination notices More info: https://aws.amazon.com/fis/
  • 10. Resilience and Elasticity with EC2 Auto Scaling Group
  • 11. Using different Instance Types and AZs increases launch chances
  • 12. Spot Instance Advisor More info: https://aws.amazon.com/ec2/spot/instance-advisor/
  • 13. AWS Community Spot Instance Advisor. Example
  • 14. Allocation strategies for Spot Instances More info: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-fleet-allocation- strategy.html
  • 15. AWS Community Allocation strategies for Spot Instances - price-capacity-optimized !!! - capacity-optimized - lowest-price More info: https://aws.amazon.com/blogs/compute/introducing-price-capacity-optimized- allocation-strategy-for-ec2-spot-instances/
  • 16. Resilience with Capacity rebalance. Get new EC2 in advance. More info: https://ec2spotworkshops.com/ec2-auto-scaling-with-multiple-instance-types-and- purchase-options/spot_resilience.html
  • 17. AWS Community EC2 Autoscaling Capacity rebalance More info: https://github.com/awslabs/ec2-spot-labs/tree/master/ec2-spot-interruption-handler
  • 18. Spot Instance Pricing How much will I have to pay?
  • 20. AWS Community Spot Instance data feed More info: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/spot-data-feeds.html
  • 21. Charge = Spot Price
  • 22. Spot Instance pricing history More info: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/using-spot-instances- history.html
  • 23. AWS Community Spot price history (example from docs)
  • 24. AWS Community Spot price history (December expectations)
  • 25. Spot Max Price More info: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/spot-requests.html#using- spot-instances-request (step 10 in new console example)
  • 26. What will happen if the Spot Max Price is not specified? More info: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/spot-requests.html#using- spot-instances-request (step 10 in new console example)
  • 27. What next? No more Spot Instances?
  • 28. AWS Community AWS CLI: aws ec2 describe-spot-price-history More info: https://awscli.amazonaws.com/v2/documentation/api/latest/reference/ec2/describe- spot-price-history.html
  • 29. AWS Community AWS API: EC2 DescribeSpotPriceHistory More info: https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_DescribeSpotPriceHistory.html
  • 30. AWS Community Terraform Module: ec2-spot-price More info: https://github.com/fivexl/terraform-aws-ec2-spot-price
  • 31. AWS Community Initial data AZ Type r5.2xlarge r5d.2xlarge r5a.2xlarge eu-central-1a 0.20 0.20 0.20 eu-central-1b 0.20 0.15 0.10 eu-central-1c 0.20 0.30 0.25 *These prices are not real prices for EC2 Spot Instance
  • 32. AWS Community Example: All Instance Types in all AZs with increased reliability. module "ec2_spot_price" { source = "fivexl/ec2-spot-price/aws" version = "2.0.0" instance_types_list = ["r5.2xlarge", "r5d.2xlarge", "r5a.2xlarge"] availability_zones_names_list = ["eu-central-1a", "eu-central-1b", "eu-central-1c"] сustom_price_modifier = 1.1 } output "spot_price_current_max_mod" { value = module.ec2_spot_price.spot_price_current_max_mod } Result: 0.33
  • 33. AWS Community Example: Cheapest as possible module "ec2_spot_price" { source = "fivexl/ec2-spot-price/aws" version = "2.0.0" instance_types_list = ["r5.2xlarge", "r5d.2xlarge", "r5a.2xlarge"] availability_zones_names_list = ["eu-central-1a", "eu-central-1b", "eu-central-1c"] } output "spot_price_current_max_mod" { value = module.ec2_spot_price.spot_price_current_min } Result: 0.10
  • 34. EC2 Spot Instances use cases
  • 35. Thank you Contacts: ● https://t.me/cageyv ● https://cageyv.dev/ ● https://github.com/cageyv/ ● https://www.linkedin.com/in/vladimirsamoylov / Useful links: ● https://github.com/fivexl/terraform-aws-ec2- spot-price ● https://aws.amazon.com/ru/ec2/spot/instance- advisor/ ● https://ec2spotworkshops.com/ ● https://github.com/awslabs/ec2-spot-labs/ ● https://github.com/aws/aws-node- termination-handler ● https://docs.aws.amazon.com/AmazonECS/late st/developerguide/container-instance- spot.html