Skip to content

Instantly share code, notes, and snippets.

@maxehmookau
Created September 4, 2017 10:33
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save maxehmookau/e1b018730571a9a95d088f24b9f8aad5 to your computer and use it in GitHub Desktop.
Save maxehmookau/e1b018730571a9a95d088f24b9f8aad5 to your computer and use it in GitHub Desktop.
gitlab-ci autoscaling config
concurrent = 12
check_interval = 0
[[runners]]
name = "aws-gitlab-runner-spawner"
limit = 6
url = "https://git.substrakt.com/ci"
token = "xxxxx"
executor = "docker+machine"
[runners.docker]
tls_verify = false
image = "ruby:2.3.1"
privileged = true
disable_cache = false
volumes = ["/cache"]
shm_size = 0
[runners.machine]
IdleCount = 0
MachineDriver = "amazonec2"
MachineName = "runner-%s"
MachineOptions = ["amazonec2-access-key=XXXX", "amazonec2-secret-key=XXXX", "amazonec2-ssh-user=ubuntu", "amazonec2-region=eu-west-2", "amazonec2-instance-type=m4.xlarge", "amazonec2-ami=ami-996372fd", "amazonec2-vpc-id=vpc-xxxxx", "amazonec2-subnet-id=subnet-xxxxx", "amazonec2-zone=a", "amazonec2-root-size=32", "amazonec2-request-spot-instance=true", "amazonec2-spot-price=0.03"]
IdleTime = 1800
@geoghegan
Copy link

Thank you for such a useful article on https://substrakthealth.com/news/gitlab-ci-cost-savings/ .

Do you know what the minimum IAM policy should be?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment