Skip to content

Files

Latest commit

0e5434a · May 20, 2022

History

History
This branch is up to date with cattle-ops/terraform-aws-gitlab-runner:develop.

runner-pre-registered

Example - Spot Runner - Private subnets

This is the previous default example. For this example you need to register the runner before running terraform and provide the runner token. Since version 3+ the runner can register itself by providing the registration token. This example is provided to showcase backwards compatibility.

Prerequisite

The terraform version is managed using tfenv. If you are not using tfenv please check .terraform-version for the tested version.

Providers

Name Version
aws 2.52

Inputs

Name Description Type Default Required
aws_region AWS region. string "eu-west-1" no
environment A name that identifies the environment, will used as prefix and for tagging. string "ci-runners" no
gitlab_url URL of the gitlab instance to connect to. string n/a yes
runner_name Name of the runner, will be used in the runner config.toml string n/a yes
runner_token Token for the runner, will be used in the runner config.toml string n/a yes
timezone Name of the timezone that the runner will be used in. string "Europe/Amsterdam" no

Outputs

No output.

Requirements

Name Version
terraform >= 1
aws ~> 4.7
local ~> 2
null ~> 3.0
random ~> 3.0
tls ~> 3

Providers

Name Version
aws ~> 4.7

Modules

Name Source Version
runner ../../ n/a
vpc terraform-aws-modules/vpc/aws 2.70

Resources

Name Type
aws_availability_zones.available data source

Inputs

Name Description Type Default Required
aws_region AWS region. string "eu-west-1" no
environment A name that identifies the environment, will used as prefix and for tagging. string "ci-runners" no
gitlab_url URL of the gitlab instance to connect to. string n/a yes
runner_name Name of the runner, will be used in the runner config.toml string n/a yes
runner_token Token for the runner, will be used in the runner config.toml string n/a yes
timezone Timezone that will be set for the runner. string "Europe/Amsterdam" no

Outputs

No outputs.