Created
September 4, 2017 10:33
-
-
Save maxehmookau/e1b018730571a9a95d088f24b9f8aad5 to your computer and use it in GitHub Desktop.
gitlab-ci autoscaling config
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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?