Skip to content

Commit 4baab28

Browse files
chore(main): release 7.6.0 (#1119)
🤖 I have created a release *beep* *boop* --- ## [7.6.0](7.5.0...7.6.0) (2024-05-01) ### Features * add option to use a pre-registered Runner ([#1115](#1115)) ([9153a3a](9153a3a)) --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please). --------- Co-authored-by: cattle-ops-releaser-2[bot] <134548870+cattle-ops-releaser-2[bot]@users.noreply.github.com> Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
1 parent cd91710 commit 4baab28

File tree

9 files changed

+48
-41
lines changed

9 files changed

+48
-41
lines changed

.github/.release-please-manifest.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
{
2-
".": "7.5.0"
2+
".": "7.6.0"
33
}

CHANGELOG.md

+7
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,12 @@
11
# Changelog
22

3+
## [7.6.0](https://github.com/cattle-ops/terraform-aws-gitlab-runner/compare/7.5.0...7.6.0) (2024-05-01)
4+
5+
6+
### Features
7+
8+
* add option to use a pre-registered Runner ([#1115](https://github.com/cattle-ops/terraform-aws-gitlab-runner/issues/1115)) ([9153a3a](https://github.com/cattle-ops/terraform-aws-gitlab-runner/commit/9153a3ac74b6b83e5ef408ff81696eb1d8b88a4d))
9+
310
## [7.5.0](https://github.com/cattle-ops/terraform-aws-gitlab-runner/compare/7.4.0...7.5.0) (2024-04-11)
411

512

README.md

+4-4
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ This project is licensed under the MIT License - see the [LICENSE](LICENSE) file
8585

8686
| Name | Version |
8787
|------|---------|
88-
| <a name="provider_aws"></a> [aws](#provider\_aws) | 5.44.0 |
88+
| <a name="provider_aws"></a> [aws](#provider\_aws) | 5.47.0 |
8989
| <a name="provider_local"></a> [local](#provider\_local) | 2.5.1 |
9090
| <a name="provider_tls"></a> [tls](#provider\_tls) | 4.0.5 |
9191

@@ -170,9 +170,9 @@ This project is licensed under the MIT License - see the [LICENSE](LICENSE) file
170170
| <a name="input_runner_ami_owners"></a> [runner\_ami\_owners](#input\_runner\_ami\_owners) | The list of owners used to select the AMI of the Runner instance. | `list(string)` | <pre>[<br> "amazon"<br>]</pre> | no |
171171
| <a name="input_runner_cloudwatch"></a> [runner\_cloudwatch](#input\_runner\_cloudwatch) | enable = Boolean used to enable or disable the CloudWatch logging.<br>log\_group\_name = Option to override the default name (`environment`) of the log group. Requires `enable = true`.<br>retention\_days = Retention for cloudwatch logs. Defaults to unlimited. Requires `enable = true`. | <pre>object({<br> enable = optional(bool, true)<br> log_group_name = optional(string, null)<br> retention_days = optional(number, 0)<br> })</pre> | `{}` | no |
172172
| <a name="input_runner_enable_asg_recreation"></a> [runner\_enable\_asg\_recreation](#input\_runner\_enable\_asg\_recreation) | Enable automatic redeployment of the Runner's ASG when the Launch Configs change. | `bool` | `true` | no |
173-
| <a name="input_runner_gitlab"></a> [runner\_gitlab](#input\_runner\_gitlab) | ca\_certificate = Trusted CA certificate bundle (PEM format).<br>certificate = Certificate of the GitLab instance to connect to (PEM format).<br>registration\_token = Registration token to use to register the Runner. Do not use. This is replaced by the `registration_token` in `runner_gitlab_registration_config`.<br>runner\_version = Version of the [GitLab Runner](https://gitlab.com/gitlab-org/gitlab-runner/-/releases).<br>url = URL of the GitLab instance to connect to.<br>url\_clone = URL of the GitLab instance to clone from. Use only if the agent can’t connect to the GitLab URL.<br>access\_token\_secure\_parameter\_store\_name = The name of the SSM parameter to read the GitLab access token from. It must have the `api` scope and be pre created. | <pre>object({<br> ca_certificate = optional(string, "")<br> certificate = optional(string, "")<br> registration_token = optional(string, "__REPLACED_BY_USER_DATA__")<br> runner_version = optional(string, "15.8.2")<br> url = optional(string, "")<br> url_clone = optional(string, "")<br> access_token_secure_parameter_store_name = optional(string, "gitlab-runner-access-token")<br> })</pre> | n/a | yes |
174-
| <a name="input_runner_gitlab_registration_config"></a> [runner\_gitlab\_registration\_config](#input\_runner\_gitlab\_registration\_config) | Configuration used to register the Runner. See the README for an example, or reference the examples in the examples directory of this repo. There is also a good GitLab documentation available at: https://docs.gitlab.com/ee/ci/runners/configure_runners.html | <pre>object({<br> registration_token = optional(string, "__GITLAB_REGISTRATION_TOKEN_FROM_SSM__")<br> tag_list = optional(string, "")<br> description = optional(string, "")<br> type = optional(string, "") # mandatory if gitlab_runner_version >= 16.0.0<br> group_id = optional(string, "") # mandatory if type is group<br> project_id = optional(string, "") # mandatory if type is project<br> locked_to_project = optional(string, "")<br> run_untagged = optional(string, "")<br> maximum_timeout = optional(string, "")<br> access_level = optional(string, "not_protected") # this is the only mandatory field calling the GitLab get token for executor operation<br> })</pre> | `{}` | no |
175-
| <a name="input_runner_gitlab_registration_token_secure_parameter_store_name"></a> [runner\_gitlab\_registration\_token\_secure\_parameter\_store\_name](#input\_runner\_gitlab\_registration\_token\_secure\_parameter\_store\_name) | The name of the SSM parameter to read the GitLab Runner registration token from. | `string` | `"gitlab-runner-registration-token"` | no |
173+
| <a name="input_runner_gitlab"></a> [runner\_gitlab](#input\_runner\_gitlab) | ca\_certificate = Trusted CA certificate bundle (PEM format).<br>certificate = Certificate of the GitLab instance to connect to (PEM format).<br>registration\_token = (deprecated, This is replaced by the `registration_token` in `runner_gitlab_registration_config`.) Registration token to use to register the Runner.<br>runner\_version = Version of the [GitLab Runner](https://gitlab.com/gitlab-org/gitlab-runner/-/releases).<br>url = URL of the GitLab instance to connect to.<br>url\_clone = URL of the GitLab instance to clone from. Use only if the agent can’t connect to the GitLab URL.<br>access\_token\_secure\_parameter\_store\_name = (deprecated) The name of the SSM parameter to read the GitLab access token from. It must have the `api` scope and be pre created.<br>preregistered\_runner\_token\_ssm\_parameter\_name = The name of the SSM parameter to read the preregistered GitLab Runner token from. | <pre>object({<br> ca_certificate = optional(string, "")<br> certificate = optional(string, "")<br> registration_token = optional(string, "__REPLACED_BY_USER_DATA__") # deprecated, removed in 8.0.0<br> runner_version = optional(string, "15.8.2")<br> url = optional(string, "")<br> url_clone = optional(string, "")<br> access_token_secure_parameter_store_name = optional(string, "gitlab-runner-access-token") # deprecated, removed in 8.0.0<br> preregistered_runner_token_ssm_parameter_name = optional(string, "")<br> })</pre> | n/a | yes |
174+
| <a name="input_runner_gitlab_registration_config"></a> [runner\_gitlab\_registration\_config](#input\_runner\_gitlab\_registration\_config) | (deprecated, replaced by runner\_gitlab.preregistered\_runner\_token\_ssm\_parameter\_name) Configuration used to register the Runner. See the README for an example, or reference the examples in the examples directory of this repo. There is also a good GitLab documentation available at: https://docs.gitlab.com/ee/ci/runners/configure_runners.html | <pre>object({<br> registration_token = optional(string, "__GITLAB_REGISTRATION_TOKEN_FROM_SSM__") # deprecated, removed in 8.0.0<br> tag_list = optional(string, "") # deprecated, removed in 8.0.0<br> description = optional(string, "") # deprecated, removed in 8.0.0<br> type = optional(string, "") # mandatory if gitlab_runner_version >= 16.0.0 # deprecated, removed in 8.0.0<br> group_id = optional(string, "") # mandatory if type is group # deprecated, removed in 8.0.0<br> project_id = optional(string, "") # mandatory if type is project # deprecated, removed in 8.0.0<br> locked_to_project = optional(string, "") # deprecated, removed in 8.0.0<br> run_untagged = optional(string, "") # deprecated, removed in 8.0.0<br> maximum_timeout = optional(string, "") # deprecated, removed in 8.0.0<br> access_level = optional(string, "not_protected") # this is the only mandatory field calling the GitLab get token for executor operation # deprecated, removed in 8.0.0<br> })</pre> | `{}` | no |
175+
| <a name="input_runner_gitlab_registration_token_secure_parameter_store_name"></a> [runner\_gitlab\_registration\_token\_secure\_parameter\_store\_name](#input\_runner\_gitlab\_registration\_token\_secure\_parameter\_store\_name) | (deprecated, replaced by runner\_gitlab.preregistered\_runner\_token\_ssm\_parameter\_name) The name of the SSM parameter to read the GitLab Runner registration token from. | `string` | `"gitlab-runner-registration-token"` | no |
176176
| <a name="input_runner_gitlab_token_secure_parameter_store"></a> [runner\_gitlab\_token\_secure\_parameter\_store](#input\_runner\_gitlab\_token\_secure\_parameter\_store) | Name of the Secure Parameter Store entry to hold the GitLab Runner token. | `string` | `"runner-token"` | no |
177177
| <a name="input_runner_install"></a> [runner\_install](#input\_runner\_install) | amazon\_ecr\_credentials\_helper = Install amazon-ecr-credential-helper inside `userdata_pre_install` script<br>docker\_machine\_download\_url = URL to download docker machine binary. If not set, the docker machine version will be used to download the binary.<br>docker\_machine\_version = By default docker\_machine\_download\_url is used to set the docker machine version. This version will be ignored once `docker_machine_download_url` is set. The version number is maintained by the CKI project. Check out at https://gitlab.com/cki-project/docker-machine/-/releases<br>pre\_install\_script = Script to run before installing the Runner<br>post\_install\_script = Script to run after installing the Runner<br>start\_script = Script to run after starting the Runner<br>yum\_update = Update the yum packages before installing the Runner | <pre>object({<br> amazon_ecr_credential_helper = optional(bool, false)<br> docker_machine_download_url = optional(string, "")<br> docker_machine_version = optional(string, "0.16.2-gitlab.19-cki.2")<br> pre_install_script = optional(string, "")<br> post_install_script = optional(string, "")<br> start_script = optional(string, "")<br> yum_update = optional(bool, true)<br> })</pre> | `{}` | no |
178178
| <a name="input_runner_instance"></a> [runner\_instance](#input\_runner\_instance) | additional\_tags = Map of tags that will be added to the Runner instance.<br>collect\_autoscaling\_metrics = A list of metrics to collect. The allowed values are GroupDesiredCapacity, GroupInServiceCapacity, GroupPendingCapacity, GroupMinSize, GroupMaxSize, GroupInServiceInstances, GroupPendingInstances, GroupStandbyInstances, GroupStandbyCapacity, GroupTerminatingCapacity, GroupTerminatingInstances, GroupTotalCapacity, GroupTotalInstances.<br>ebs\_optimized = Enable EBS optimization for the Runner instance.<br>max\_lifetime\_seconds = The maximum time a Runner should live before it is killed.<br>monitoring = Enable the detailed monitoring on the Runner instance.<br>name = Name of the Runner instance.<br>name\_prefix = Set the name prefix and override the `Name` tag for the Runner instance.<br>private\_address\_only = Restrict the Runner to use private IP addresses only. If this is set to `true` the Runner will use a private IP address only in case the Runner Workers use private addresses only.<br>root\_device\_config = The Runner's root block device configuration. Takes the following keys: `device_name`, `delete_on_termination`, `volume_type`, `volume_size`, `encrypted`, `iops`, `throughput`, `kms_key_id`<br>spot\_price = By setting a spot price bid price the Runner is created via a spot request. Be aware that spot instances can be stopped by AWS. Choose \"on-demand-price\" to pay up to the current on demand price for the instance type chosen.<br>ssm\_access = Allows to connect to the Runner via SSM.<br>type = EC2 instance type used.<br>use\_eip = Assigns an EIP to the Runner. | <pre>object({<br> additional_tags = optional(map(string))<br> collect_autoscaling_metrics = optional(list(string), null)<br> ebs_optimized = optional(bool, true)<br> max_lifetime_seconds = optional(number, null)<br> monitoring = optional(bool, true)<br> name = string<br> name_prefix = optional(string)<br> private_address_only = optional(bool, true)<br> root_device_config = optional(map(string), {})<br> spot_price = optional(string, null)<br> ssm_access = optional(bool, false)<br> type = optional(string, "t3.micro")<br> use_eip = optional(bool, false)<br> })</pre> | <pre>{<br> "name": "gitlab-runner"<br>}</pre> | no |

examples/runner-certificates/README.md

+7-7
Original file line numberDiff line numberDiff line change
@@ -139,31 +139,31 @@ For **user images**, you must:
139139
| Name | Version |
140140
|------|---------|
141141
| <a name="requirement_terraform"></a> [terraform](#requirement\_terraform) | >= 1.3 |
142-
| <a name="requirement_aws"></a> [aws](#requirement\_aws) | 5.44.0 |
142+
| <a name="requirement_aws"></a> [aws](#requirement\_aws) | 5.47.0 |
143143
| <a name="requirement_local"></a> [local](#requirement\_local) | 2.5.1 |
144144
| <a name="requirement_null"></a> [null](#requirement\_null) | 3.2.2 |
145-
| <a name="requirement_random"></a> [random](#requirement\_random) | 3.6.0 |
145+
| <a name="requirement_random"></a> [random](#requirement\_random) | 3.6.1 |
146146
| <a name="requirement_tls"></a> [tls](#requirement\_tls) | 4.0.5 |
147147
148148
## Providers
149149
150150
| Name | Version |
151151
|------|---------|
152-
| <a name="provider_aws"></a> [aws](#provider\_aws) | 5.44.0 |
152+
| <a name="provider_aws"></a> [aws](#provider\_aws) | 5.47.0 |
153153
154154
## Modules
155155
156156
| Name | Source | Version |
157157
|------|--------|---------|
158158
| <a name="module_runner"></a> [runner](#module\_runner) | ../../ | n/a |
159-
| <a name="module_vpc"></a> [vpc](#module\_vpc) | terraform-aws-modules/vpc/aws | 5.7.1 |
160-
| <a name="module_vpc_endpoints"></a> [vpc\_endpoints](#module\_vpc\_endpoints) | terraform-aws-modules/vpc/aws//modules/vpc-endpoints | 5.7.1 |
159+
| <a name="module_vpc"></a> [vpc](#module\_vpc) | terraform-aws-modules/vpc/aws | 5.8.1 |
160+
| <a name="module_vpc_endpoints"></a> [vpc\_endpoints](#module\_vpc\_endpoints) | terraform-aws-modules/vpc/aws//modules/vpc-endpoints | 5.8.1 |
161161
162162
## Resources
163163
164164
| Name | Type |
165165
|------|------|
166-
| [aws_availability_zones.available](https://registry.terraform.io/providers/hashicorp/aws/5.44.0/docs/data-sources/availability_zones) | data source |
166+
| [aws_availability_zones.available](https://registry.terraform.io/providers/hashicorp/aws/5.47.0/docs/data-sources/availability_zones) | data source |
167167
168168
## Inputs
169169
@@ -172,7 +172,7 @@ For **user images**, you must:
172172
| <a name="input_aws_region"></a> [aws\_region](#input\_aws\_region) | AWS region. | `string` | `"eu-west-1"` | no |
173173
| <a name="input_environment"></a> [environment](#input\_environment) | A name that identifies the environment, will used as prefix and for tagging. | `string` | `"runners-docker"` | no |
174174
| <a name="input_gitlab_url"></a> [gitlab\_url](#input\_gitlab\_url) | URL of the gitlab instance to connect to. | `string` | `"https://gitlab.com"` | no |
175-
| <a name="input_registration_token"></a> [registration\_token](#input\_registration\_token) | Gitlab runner registration token | `string` | `"something"` | no |
175+
| <a name="input_preregistered_runner_token_ssm_parameter_name"></a> [preregistered\_runner\_token\_ssm\_parameter\_name](#input\_preregistered\_runner\_token\_ssm\_parameter\_name) | The name of the SSM parameter to read the preregistered GitLab Runner token from. | `string` | n/a | yes |
176176
| <a name="input_runner_name"></a> [runner\_name](#input\_runner\_name) | Name of the runner, will be used in the runner config.toml | `string` | `"docker"` | no |
177177
178178
## Outputs

examples/runner-default/README.md

+8-8
Original file line numberDiff line numberDiff line change
@@ -33,32 +33,32 @@ check `.terraform-version` for the tested version.
3333
| Name | Version |
3434
|------|---------|
3535
| <a name="requirement_terraform"></a> [terraform](#requirement\_terraform) | >= 1.3 |
36-
| <a name="requirement_aws"></a> [aws](#requirement\_aws) | 5.44.0 |
36+
| <a name="requirement_aws"></a> [aws](#requirement\_aws) | 5.47.0 |
3737
| <a name="requirement_local"></a> [local](#requirement\_local) | 2.5.1 |
3838
| <a name="requirement_null"></a> [null](#requirement\_null) | 3.2.2 |
39-
| <a name="requirement_random"></a> [random](#requirement\_random) | 3.6.0 |
39+
| <a name="requirement_random"></a> [random](#requirement\_random) | 3.6.1 |
4040
| <a name="requirement_tls"></a> [tls](#requirement\_tls) | 4.0.5 |
4141

4242
## Providers
4343

4444
| Name | Version |
4545
|------|---------|
46-
| <a name="provider_aws"></a> [aws](#provider\_aws) | 5.44.0 |
46+
| <a name="provider_aws"></a> [aws](#provider\_aws) | 5.47.0 |
4747

4848
## Modules
4949

5050
| Name | Source | Version |
5151
|------|--------|---------|
5252
| <a name="module_runner"></a> [runner](#module\_runner) | ../../ | n/a |
53-
| <a name="module_vpc"></a> [vpc](#module\_vpc) | terraform-aws-modules/vpc/aws | 5.7.1 |
54-
| <a name="module_vpc_endpoints"></a> [vpc\_endpoints](#module\_vpc\_endpoints) | terraform-aws-modules/vpc/aws//modules/vpc-endpoints | 5.7.1 |
53+
| <a name="module_vpc"></a> [vpc](#module\_vpc) | terraform-aws-modules/vpc/aws | 5.8.1 |
54+
| <a name="module_vpc_endpoints"></a> [vpc\_endpoints](#module\_vpc\_endpoints) | terraform-aws-modules/vpc/aws//modules/vpc-endpoints | 5.8.1 |
5555

5656
## Resources
5757

5858
| Name | Type |
5959
|------|------|
60-
| [aws_availability_zones.available](https://registry.terraform.io/providers/hashicorp/aws/5.44.0/docs/data-sources/availability_zones) | data source |
61-
| [aws_security_group.default](https://registry.terraform.io/providers/hashicorp/aws/5.44.0/docs/data-sources/security_group) | data source |
60+
| [aws_availability_zones.available](https://registry.terraform.io/providers/hashicorp/aws/5.47.0/docs/data-sources/availability_zones) | data source |
61+
| [aws_security_group.default](https://registry.terraform.io/providers/hashicorp/aws/5.47.0/docs/data-sources/security_group) | data source |
6262

6363
## Inputs
6464

@@ -67,7 +67,7 @@ check `.terraform-version` for the tested version.
6767
| <a name="input_aws_region"></a> [aws\_region](#input\_aws\_region) | AWS region. | `string` | `"eu-west-1"` | no |
6868
| <a name="input_environment"></a> [environment](#input\_environment) | A name that identifies the environment, will used as prefix and for tagging. | `string` | `"runners-default"` | no |
6969
| <a name="input_gitlab_url"></a> [gitlab\_url](#input\_gitlab\_url) | URL of the gitlab instance to connect to. | `string` | `"https://gitlab.com"` | no |
70-
| <a name="input_registration_token"></a> [registration\_token](#input\_registration\_token) | Registration token for the runner. | `string` | n/a | yes |
70+
| <a name="input_preregistered_runner_token_ssm_parameter_name"></a> [preregistered\_runner\_token\_ssm\_parameter\_name](#input\_preregistered\_runner\_token\_ssm\_parameter\_name) | The name of the SSM parameter to read the preregistered GitLab Runner token from. | `string` | n/a | yes |
7171
| <a name="input_runner_name"></a> [runner\_name](#input\_runner\_name) | Name of the runner, will be used in the runner config.toml | `string` | `"default-auto"` | no |
7272
| <a name="input_timezone"></a> [timezone](#input\_timezone) | Name of the timezone that the runner will be used in. | `string` | `"Europe/Amsterdam"` | no |
7373

0 commit comments

Comments
 (0)