Skip to content

Latest commit

 

History

History

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.

Requirements

Name Version
terraform >= 1.3
aws 5.48.0
local 2.5.1
null 3.2.2
random 3.6.1
tls 4.0.5

Providers

Name Version
aws 5.48.0

Modules

Name Source Version
runner ../../ n/a
vpc terraform-aws-modules/vpc/aws 5.8.1
vpc_endpoints terraform-aws-modules/vpc/aws//modules/vpc-endpoints 5.8.1

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
preregistered_runner_token_ssm_parameter_name The name of the SSM parameter to read the preregistered GitLab Runner token from. string n/a yes
runner_name Name of 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.