Skip to content

Instantly share code, notes, and snippets.

View terma's full-sized avatar

Artem Stasiuk terma

  • AWS
  • Sammamish, WA
View GitHub Profile
@terma
terma / ec2-spot-github-self-hosted-runners.md
Created January 28, 2020 09:32
AWS EC2 Spot Instances for GitHub Self-hosted runners

AWS EC2 Spot Instances for GitHub Self-hosted runners

Below CloudFormation stack which runs GitHub Self-hosted runners on EC2 Spot Instances managed by AutoScalingGroup. It automatically register new instances as self-hosted runners and removes them when Spot is interrupted.

How to use?

  1. Download YML below into file
  2. Create AWS CloudFormation stack
    • Provide values for parameters
  • If you need to install smt in UserData fill stack parameter AdditionalUserData