Skip to content

Commit 950f6b4

Browse files
Ivan Dechovskinpalm
Ivan Dechovski
authored andcommitted
feat: Add ability to define throughput for root block device on runner
1 parent 8acac44 commit 950f6b4

File tree

4 files changed

+3
-24
lines changed

4 files changed

+3
-24
lines changed

CHANGELOG.md

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

3-
## [4.30.0](https://github.com/npalm/terraform-aws-gitlab-runner/compare/4.29.0...4.30.0) (2021-08-30)
4-
5-
6-
### Features
7-
8-
* Add option to override IAM objects names ([#358](https://github.com/npalm/terraform-aws-gitlab-runner/issues/358)) ([c96051d](https://github.com/npalm/terraform-aws-gitlab-runner/commit/c96051d382cfe4365bc014eae9645d3fbc36e3e2))
9-
10-
## [4.29.0](https://github.com/npalm/terraform-aws-gitlab-runner/compare/4.28.0...4.29.0) (2021-08-28)
11-
12-
13-
### Features
14-
15-
* Allow configuring docker machine egress rules, see PR [#351](https://github.com/npalm/terraform-aws-gitlab-runner/issues/351) for upgrade instructions ([845e018](https://github.com/npalm/terraform-aws-gitlab-runner/commit/845e0186b04b4d949dd0cd46a79ff727356c6e55))
16-
* Parametrize runner instance launch configuration metadata options ([#348](https://github.com/npalm/terraform-aws-gitlab-runner/issues/348)) ([a4406dc](https://github.com/npalm/terraform-aws-gitlab-runner/commit/a4406dcb18d159b9ff8a76ef77294c33be0ab975))
17-
* replace launch configuration with launch template ([#337](https://github.com/npalm/terraform-aws-gitlab-runner/issues/337)) ([b805fb6](https://github.com/npalm/terraform-aws-gitlab-runner/commit/b805fb615bbb17235b028413dae2a199085a178a))
18-
* support for settings Sentry DSN ([#352](https://github.com/npalm/terraform-aws-gitlab-runner/issues/352)) ([2a07466](https://github.com/npalm/terraform-aws-gitlab-runner/commit/2a0746646706d737f5a3256fccda20fcbcdf50a4))
19-
20-
21-
### Bug Fixes
22-
23-
* Use better ressources names ([#356](https://github.com/npalm/terraform-aws-gitlab-runner/issues/356)) ([817e040](https://github.com/npalm/terraform-aws-gitlab-runner/commit/817e040757de7c74558b2315b5c0c7cf9bb063ce))
24-
253
## [4.28.0](https://github.com/npalm/terraform-aws-gitlab-runner/compare/4.27.0...4.28.0) (2021-07-31)
264

275

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -351,7 +351,7 @@ terraform destroy
351351
| runner\_instance\_metadata\_options\_http\_endpoint | Enable the Gitlab runner agent instance metadata service. The allowed values are enabled, disabled. | `string` | `"enabled"` | no |
352352
| runner\_instance\_metadata\_options\_http\_tokens | Set if Gitlab runner agent instance metadata service session tokens are required. The allowed values are optional, required. | `string` | `"optional"` | no |
353353
| runner\_instance\_spot\_price | By setting a spot price bid price the runner agent will be created via a spot request. Be aware that spot instances can be stopped by AWS. | `string` | `null` | no |
354-
| runner\_root\_block\_device | The EC2 instance root block device configuration. Takes the following keys: `device_name`, `delete_on_termination`, `volume_type`, `volume_size`, `encrypted`, `iops`, `kms_key_id` | `map(string)` | `{}` | no |
354+
| runner\_root\_block\_device | The EC2 instance root block device configuration. Takes the following keys: `device_name`, `delete_on_termination`, `volume_type`, `volume_size`, `encrypted`, `iops`, `throughput`, `kms_key_id` | `map(string)` | `{}` | no |
355355
| runner\_tags | Map of tags that will be added to runner EC2 instances. | `map(string)` | `{}` | no |
356356
| runners\_additional\_volumes | Additional volumes that will be used in the runner config.toml, e.g Docker socket | `list(any)` | `[]` | no |
357357
| runners\_concurrent | Concurrent value for the runners, will be used in the runner config.toml. | `number` | `10` | no |

main.tf

+1
Original file line numberDiff line numberDiff line change
@@ -266,6 +266,7 @@ resource "aws_launch_template" "gitlab_runner_instance" {
266266
volume_size = lookup(block_device_mappings.value, "volume_size", 8)
267267
encrypted = lookup(block_device_mappings.value, "encrypted", true)
268268
iops = lookup(block_device_mappings.value, "iops", null)
269+
throughput = lookup(block_device_mappings.value, "throughput", null)
269270
kms_key_id = lookup(block_device_mappings.value, "`kms_key_id`", null)
270271
}
271272
}

variables.tf

+1-1
Original file line numberDiff line numberDiff line change
@@ -608,7 +608,7 @@ variable "schedule_config" {
608608
}
609609

610610
variable "runner_root_block_device" {
611-
description = "The EC2 instance root block device configuration. Takes the following keys: `device_name`, `delete_on_termination`, `volume_type`, `volume_size`, `encrypted`, `iops`, `kms_key_id`"
611+
description = "The EC2 instance root block device configuration. Takes the following keys: `device_name`, `delete_on_termination`, `volume_type`, `volume_size`, `encrypted`, `iops`, `throughput`, `kms_key_id`"
612612
type = map(string)
613613
default = {}
614614
}

0 commit comments

Comments
 (0)