woodjme / autoscaling-ec2-gitlab-runners-fargate

Autoscaling EC2 GitLab Runners Spawned by Fargate
MIT License
19 stars 7 forks source link
aws cloudformation ec2 fargate gitlab-runner hacktoberfest

Autoscaling EC2 GitLab Runners Spawned by Fargate

The purpose of the CloudFormation template is to create a Fargate Service that manages and autoscales EC2 instances to serve as a Gitlab CI executors. This allows for private GitLab Runners without managing, patching or maintaining servers.

Why Use EC2 executors?

At the time of writing, Fargate doesn't support the privileged task definition parameter for executors which ultimately means you can't use Docker-in-Docker to build/pull/push docker images in a Fargate executor. Anyone who is looking for a pure Fargate implementation should read this.

Launch CloudFormation

Diagram

Parameters

Resource Created