Skip to content

Commit 31d94c5

Browse files
leoblancbendavies
andauthored
fix: Rename variable and fix variables descriptions (#75)
* Renamed variable 'runners_maxiumum_count' as 'runners_maximum_count' * Fixed descriptions of runners_scale_down and runners_scale_up variables * Update modules/runners/variables.tf Co-authored-by: Ben Davies <[email protected]> * Update variables.tf Co-authored-by: Ben Davies <[email protected]> Co-authored-by: Ben Davies <[email protected]>
1 parent a0bb31f commit 31d94c5

File tree

6 files changed

+10
-10
lines changed

6 files changed

+10
-10
lines changed

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -256,9 +256,9 @@ No requirements.
256256
| runner\_binaries\_syncer\_lambda\_zip | File location of the binaries sync lambda zip file. | `string` | `null` | no |
257257
| runner\_extra\_labels | Extra labels for the runners (GitHub). Separate each label by a comma | `string` | `""` | no |
258258
| runners\_lambda\_zip | File location of the lambda zip file for scaling runners. | `string` | `null` | no |
259-
| runners\_maxiumum\_count | The maxiumum number of runners tha will be created. | `number` | `3` | no |
260-
| runners\_scale\_down\_lambda\_timeout | Time out for the scale up lambda in seconds. | `number` | `60` | no |
261-
| runners\_scale\_up\_lambda\_timeout | Time out for the scale down lambda in seconds. | `number` | `60` | no |
259+
| runners\_maximum\_count | The maximum number of runners tha will be created. | `number` | `3` | no |
260+
| runners\_scale\_down\_lambda\_timeout | Time out for the scale down lambda in seconds. | `number` | `60` | no |
261+
| runners\_scale\_up\_lambda\_timeout | Time out for the scale up lambda in seconds. | `number` | `60` | no |
262262
| scale\_down\_schedule\_expression | Scheduler expression to check every x for scale down. | `string` | `"cron(*/5 * * * ? *)"` | no |
263263
| subnet\_ids | List of subnets in which the action runners will be launched, the subnets needs to be subnets in the `vpc_id`. | `list(string)` | n/a | yes |
264264
| tags | Map of tags that will be added to created resources. By default resources will be tagged with name and environment. | `map(string)` | `{}` | no |

main.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ module "runners" {
6969
minimum_running_time_in_minutes = var.minimum_running_time_in_minutes
7070
runner_extra_labels = var.runner_extra_labels
7171
runner_as_root = var.runner_as_root
72-
runners_maxiumum_count = var.runners_maxiumum_count
72+
runners_maximum_count = var.runners_maximum_count
7373

7474
lambda_zip = var.runners_lambda_zip
7575
lambda_timeout_scale_up = var.runners_scale_up_lambda_timeout

modules/runners/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ No requirements.
8282
| role\_permissions\_boundary | Permissions boundary that will be added to the created role for the lambda. | `string` | `null` | no |
8383
| runner\_as\_root | Run the action runner under the root user. | `bool` | `false` | no |
8484
| runner\_extra\_labels | Extra labels for the runners (GitHub). Separate each label by a comma | `string` | `""` | no |
85-
| runners\_maxiumum\_count | The maxiumum number of runners tha will be created. | `number` | `3` | no |
85+
| runners\_maximum\_count | The maximum number of runners tha will be created. | `number` | `3` | no |
8686
| s3\_bucket\_runner\_binaries | n/a | <pre>object({<br> arn = string<br> })</pre> | n/a | yes |
8787
| s3\_location\_runner\_binaries | S3 location of runner distribution. | `string` | n/a | yes |
8888
| scale\_down\_schedule\_expression | Scheduler expression to check every x for scale down. | `string` | `"cron(*/5 * * * ? *)"` | no |

modules/runners/scale-up.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ resource "aws_lambda_function" "scale_up" {
2929
KMS_KEY_ID = var.encryption.kms_key_id
3030
ENABLE_ORGANIZATION_RUNNERS = var.enable_organization_runners
3131
RUNNER_EXTRA_LABELS = var.runner_extra_labels
32-
RUNNERS_MAXIMUM_COUNT = var.runners_maxiumum_count
32+
RUNNERS_MAXIMUM_COUNT = var.runners_maximum_count
3333
GITHUB_APP_KEY_BASE64 = local.github_app_key_base64
3434
GITHUB_APP_ID = var.github_app.id
3535
GITHUB_APP_CLIENT_ID = var.github_app.client_id

modules/runners/variables.tf

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -174,8 +174,8 @@ variable "runner_as_root" {
174174
default = false
175175
}
176176

177-
variable "runners_maxiumum_count" {
178-
description = "The maxiumum number of runners tha will be created."
177+
variable "runners_maximum_count" {
178+
description = "The maximum number of runners that will be created."
179179
type = number
180180
default = 3
181181
}

variables.tf

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -132,8 +132,8 @@ variable "runner_as_root" {
132132
default = false
133133
}
134134

135-
variable "runners_maxiumum_count" {
136-
description = "The maxiumum number of runners tha will be created."
135+
variable "runners_maximum_count" {
136+
description = "The maximum number of runners that will be created."
137137
type = number
138138
default = 3
139139
}

0 commit comments

Comments
 (0)