Simple project for spin up gitlab-runner cluster on AWS with some advanced configuration such as:
- Build with customized AMI with the help of packer
- Build with autoscaling setup, also added with autoscaling schedule with the help of terraform
git clone https://github.com/ardikabs/gitlab-runner-cluster-aws
cd gitlab-runner-cluster-aws
./setup.sh packer
Setting up gitlab-runner cluster on AWS
Type the Gitlab URL to be used for gitlab-runner:
gitlab.com
Type the Registration Token for Gitlab Runner to be used for gitlab-runner:
Fhurp9yJ3T46_vwZ7t92
Type VPC Id to be used for building the AMI:
vpc-0ba5b3023a58bab6c
Type Public subnet Id to be used for building the AMI:
subnet-0ed6a2cee8c75f594
Running packer to build AMI for gitlab-runner on AWS
amazon-ebs: output will be in this color
.
.
.
cd gitlab-runner-cluster-aws
./setup.sh terraform
Setting up gitlab-runner cluster on AWS
Type the gitlab-runner AMI to be used for gitlab-runner cluster:
ami-0beaa8ab3a1274c50
Type the instance type to be used for gitlab-runner cluster (default c5.large):
Type the desired capacity for gitlab-runner instance should be run in gitlab-runner cluster (default 5):
Type the minimal gitlab-runner instance should be run in gitlab-runner cluster (default 3):
Type the maximal gitlab-runner instance should be run in gitlab-runner cluster (default 10):
Type VPC id to be used for running gitlab-runner cluster:
vpc-0ba5b3023a58bab6c
Type Network Tier to be used for running gitlab-runner cluster:
utility
Running Terraform to spin up for gitlab-runner cluster on AWS
Initializing the backend...
.
.
.
./setup.sh destroy