Skip to content
This repository has been archived by the owner on Jan 10, 2025. It is now read-only.

Commit

Permalink
docs: Typo's and clarifications (#3262)
Browse files Browse the repository at this point in the history
  • Loading branch information
sdarwin authored May 23, 2023
1 parent 9387bee commit 1c1adb2
Show file tree
Hide file tree
Showing 12 changed files with 119 additions and 120 deletions.
161 changes: 80 additions & 81 deletions README.md

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions examples/arm64/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ You can receive the webhook details by running:
terraform output -raw webhook_secret
```

Be-aware some shells will print some end of line character `%`.
Be aware some shells will print some end of line character `%`.

<!-- BEGIN_TF_DOCS -->
## Requirements
Expand Down Expand Up @@ -72,4 +72,4 @@ Be-aware some shells will print some end of line character `%`.
| <a name="output_runners"></a> [runners](#output\_runners) | n/a |
| <a name="output_webhook_endpoint"></a> [webhook\_endpoint](#output\_webhook\_endpoint) | n/a |
| <a name="output_webhook_secret"></a> [webhook\_secret](#output\_webhook\_secret) | n/a |
<!-- END_TF_DOCS -->
<!-- END_TF_DOCS -->
4 changes: 2 additions & 2 deletions examples/default/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ You can receive the webhook details by running:
terraform output -raw webhook_secret
```

Be-aware some shells will print some end of line character `%`.
Be aware some shells will print some end of line character `%`.

<!-- BEGIN_TF_DOCS -->
## Requirements
Expand Down Expand Up @@ -73,4 +73,4 @@ Be-aware some shells will print some end of line character `%`.
| <a name="output_runners"></a> [runners](#output\_runners) | n/a |
| <a name="output_webhook_endpoint"></a> [webhook\_endpoint](#output\_webhook\_endpoint) | n/a |
| <a name="output_webhook_secret"></a> [webhook\_secret](#output\_webhook\_secret) | n/a |
<!-- END_TF_DOCS -->
<!-- END_TF_DOCS -->
4 changes: 2 additions & 2 deletions examples/ephemeral/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ You can receive the webhook details by running:
terraform output -raw webhook_secret
```

Be-aware some shells will print some end of line character `%`.
Be aware some shells will print some end of line character `%`.
<!-- BEGIN_TF_DOCS -->
## Requirements

Expand Down Expand Up @@ -70,4 +70,4 @@ Be-aware some shells will print some end of line character `%`.
| <a name="output_runners"></a> [runners](#output\_runners) | n/a |
| <a name="output_webhook_endpoint"></a> [webhook\_endpoint](#output\_webhook\_endpoint) | n/a |
| <a name="output_webhook_secret"></a> [webhook\_secret](#output\_webhook\_secret) | n/a |
<!-- END_TF_DOCS -->
<!-- END_TF_DOCS -->
4 changes: 2 additions & 2 deletions examples/multi-runner/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ You can receive the webhook details by running:
terraform output -raw webhook_secret
```

Be-aware some shells will print some end of line character `%`.
Be aware some shells will print some end of line character `%`.

<!-- BEGIN_TF_DOCS -->
## Requirements
Expand Down Expand Up @@ -89,4 +89,4 @@ Be-aware some shells will print some end of line character `%`.
|------|-------------|
| <a name="output_webhook_endpoint"></a> [webhook\_endpoint](#output\_webhook\_endpoint) | n/a |
| <a name="output_webhook_secret"></a> [webhook\_secret](#output\_webhook\_secret) | n/a |
<!-- END_TF_DOCS -->
<!-- END_TF_DOCS -->
4 changes: 2 additions & 2 deletions examples/prebuilt/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ You can receive the webhook details by running:
terraform output -raw webhook_secret
```

Be-aware some shells will print some end of line character `%`.
Be aware some shells will print some end of line character `%`.

<!-- BEGIN_TF_DOCS -->
## Requirements
Expand Down Expand Up @@ -139,4 +139,4 @@ Be-aware some shells will print some end of line character `%`.
|------|-------------|
| <a name="output_webhook_endpoint"></a> [webhook\_endpoint](#output\_webhook\_endpoint) | n/a |
| <a name="output_webhook_secret"></a> [webhook\_secret](#output\_webhook\_secret) | n/a |
<!-- END_TF_DOCS -->
<!-- END_TF_DOCS -->
2 changes: 1 addition & 1 deletion modules/multi-runner/README.md

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions modules/multi-runner/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ variable "multi_runner_config" {
create_service_linked_role_spot: (Optional) create the serviced linked role for spot instances that is required by the scale-up lambda.
credit_specification: "(Optional) The credit specification of the runner instance_type. Can be unset, `standard` or `unlimited`.
delay_webhook_event: "The number of seconds the event accepted by the webhook is invisible on the queue before the scale up lambda will receive the event."
disable_runner_autoupdate: "Disable the auto update of the github runner agent. Be-aware there is a grace period of 30 days, see also the [GitHub article](https://github.blog/changelog/2022-02-01-github-actions-self-hosted-runners-can-now-disable-automatic-updates/)"
disable_runner_autoupdate: "Disable the auto update of the github runner agent. Be aware there is a grace period of 30 days, see also the [GitHub article](https://github.blog/changelog/2022-02-01-github-actions-self-hosted-runners-can-now-disable-automatic-updates/)"
enable_ephemeral_runners: "Enable ephemeral runners, runners will only be used once."
enable_job_queued_check: "Only scale if the job event received by the scale up lambda is is in the state queued. By default enabled for non ephemeral runners and disabled for ephemeral. Set this variable to overwrite the default behavior." = optional(bool, null)
enable_organization_runners: "Register runners to organization, instead of repo level"
Expand Down Expand Up @@ -256,7 +256,7 @@ variable "webhook_lambda_apigateway_access_log_settings" {
}

variable "repository_white_list" {
description = "List of repositories allowed to use the github app"
description = "List of github repository full names (owner/repo_name) that will be allowed to use the github app. Leave empty for no filtering."
type = list(string)
default = []
}
Expand Down
4 changes: 2 additions & 2 deletions modules/runners/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ yarn run dist
| <a name="input_cloudwatch_config"></a> [cloudwatch\_config](#input\_cloudwatch\_config) | (optional) Replaces the module default cloudwatch log config. See https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/CloudWatch-Agent-Configuration-File-Details.html for details. | `string` | `null` | no |
| <a name="input_create_service_linked_role_spot"></a> [create\_service\_linked\_role\_spot](#input\_create\_service\_linked\_role\_spot) | (optional) create the service linked role for spot instances that is required by the scale-up lambda. | `bool` | `false` | no |
| <a name="input_credit_specification"></a> [credit\_specification](#input\_credit\_specification) | The credit option for CPU usage of a T instance. Can be unset, "standard" or "unlimited". | `string` | `null` | no |
| <a name="input_disable_runner_autoupdate"></a> [disable\_runner\_autoupdate](#input\_disable\_runner\_autoupdate) | Disable the auto update of the github runner agent. Be-aware there is a grace period of 30 days, see also the [GitHub article](https://github.blog/changelog/2022-02-01-github-actions-self-hosted-runners-can-now-disable-automatic-updates/) | `bool` | `false` | no |
| <a name="input_disable_runner_autoupdate"></a> [disable\_runner\_autoupdate](#input\_disable\_runner\_autoupdate) | Disable the auto update of the github runner agent. Be aware there is a grace period of 30 days, see also the [GitHub article](https://github.blog/changelog/2022-02-01-github-actions-self-hosted-runners-can-now-disable-automatic-updates/) | `bool` | `false` | no |
| <a name="input_egress_rules"></a> [egress\_rules](#input\_egress\_rules) | List of egress rules for the GitHub runner instances. | <pre>list(object({<br> cidr_blocks = list(string)<br> ipv6_cidr_blocks = list(string)<br> prefix_list_ids = list(string)<br> from_port = number<br> protocol = string<br> security_groups = list(string)<br> self = bool<br> to_port = number<br> description = string<br> }))</pre> | <pre>[<br> {<br> "cidr_blocks": [<br> "0.0.0.0/0"<br> ],<br> "description": null,<br> "from_port": 0,<br> "ipv6_cidr_blocks": [<br> "::/0"<br> ],<br> "prefix_list_ids": null,<br> "protocol": "-1",<br> "security_groups": null,<br> "self": null,<br> "to_port": 0<br> }<br>]</pre> | no |
| <a name="input_enable_cloudwatch_agent"></a> [enable\_cloudwatch\_agent](#input\_enable\_cloudwatch\_agent) | Enabling the cloudwatch agent on the ec2 runner instances, the runner contains default config. Configuration can be overridden via `cloudwatch_config`. | `bool` | `true` | no |
| <a name="input_enable_ephemeral_runners"></a> [enable\_ephemeral\_runners](#input\_enable\_ephemeral\_runners) | Enable ephemeral runners, runners will only be used once. | `bool` | `false` | no |
Expand Down Expand Up @@ -225,4 +225,4 @@ yarn run dist
| <a name="output_role_scale_down"></a> [role\_scale\_down](#output\_role\_scale\_down) | n/a |
| <a name="output_role_scale_up"></a> [role\_scale\_up](#output\_role\_scale\_up) | n/a |
| <a name="output_runners_log_groups"></a> [runners\_log\_groups](#output\_runners\_log\_groups) | List of log groups from different log files of runner machine. |
<!-- END_TF_DOCS -->
<!-- END_TF_DOCS -->
2 changes: 1 addition & 1 deletion modules/runners/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -538,7 +538,7 @@ variable "pool_config" {
}

variable "disable_runner_autoupdate" {
description = "Disable the auto update of the github runner agent. Be-aware there is a grace period of 30 days, see also the [GitHub article](https://github.blog/changelog/2022-02-01-github-actions-self-hosted-runners-can-now-disable-automatic-updates/)"
description = "Disable the auto update of the github runner agent. Be aware there is a grace period of 30 days, see also the [GitHub article](https://github.blog/changelog/2022-02-01-github-actions-self-hosted-runners-can-now-disable-automatic-updates/)"
type = bool
default = false
}
Expand Down
2 changes: 1 addition & 1 deletion modules/webhook/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ variable "webhook_lambda_apigateway_access_log_settings" {
}

variable "repository_white_list" {
description = "List of repositories allowed to use the github app"
description = "List of github repository full names (owner/repo_name) that will be allowed to use the github app. Leave empty for no filtering."
type = list(string)
default = []
}
Expand Down
44 changes: 22 additions & 22 deletions variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ variable "vpc_id" {
}

variable "subnet_ids" {
description = "List of subnets in which the action runner instances will be launched. The subnets need to exist in the configured VPC (`vpc_id`), and must reside on different availability zones (see https://github.com/philips-labs/terraform-aws-github-runner/issues/2904)"
description = "List of subnets in which the action runner instances will be launched. The subnets need to exist in the configured VPC (`vpc_id`), and must reside in different availability zones (see https://github.com/philips-labs/terraform-aws-github-runner/issues/2904)"
type = list(string)
}

Expand Down Expand Up @@ -58,7 +58,7 @@ variable "scale_down_schedule_expression" {
}

variable "minimum_running_time_in_minutes" {
description = "The time an ec2 action runner should be running at minimum before terminated if not busy."
description = "The time an ec2 action runner should be running at minimum before terminated, if not busy."
type = number
default = null
}
Expand Down Expand Up @@ -245,7 +245,7 @@ variable "userdata_post_install" {
}

variable "idle_config" {
description = "List of time period that can be defined as cron expression to keep a minimum amount of runners active instead of scaling down to 0. By defining this list you can ensure that in time periods that match the cron expression within 5 seconds a runner is kept idle."
description = "List of time periods, defined as a cron expression, to keep a minimum amount of runners active instead of scaling down to 0. By defining this list you can ensure that in time periods that match the cron expression within 5 seconds a runner is kept idle."
type = list(object({
cron = string
timeZone = string
Expand All @@ -255,7 +255,7 @@ variable "idle_config" {
}

variable "enable_ssm_on_runners" {
description = "Enable to allow access the runner instances for debugging purposes via SSM. Note that this adds additional permissions to the runner instances."
description = "Enable to allow access to the runner instances for debugging purposes via SSM. Note that this adds additional permissions to the runner instances."
type = bool
default = false
}
Expand All @@ -267,7 +267,7 @@ variable "logging_retention_in_days" {
}

variable "logging_kms_key_id" {
description = "Specifies the kms key id to encrypt the logs with"
description = "Specifies the kms key id to encrypt the logs with."
type = string
default = null
}
Expand Down Expand Up @@ -332,7 +332,7 @@ variable "lambda_s3_bucket" {
}

variable "syncer_lambda_s3_key" {
description = "S3 key for syncer lambda function. Required if using S3 bucket to specify lambdas."
description = "S3 key for syncer lambda function. Required if using an S3 bucket to specify lambdas."
type = string
default = null
}
Expand Down Expand Up @@ -376,7 +376,7 @@ variable "runners_lambda_s3_object_version" {
}

variable "create_service_linked_role_spot" {
description = "(optional) create the serviced linked role for spot instances that is required by the scale-up lambda."
description = "(optional) create the service linked role for spot instances that is required by the scale-up lambda."
type = bool
default = false
}
Expand All @@ -388,13 +388,13 @@ variable "runner_iam_role_managed_policy_arns" {
}

variable "enable_cloudwatch_agent" {
description = "Enabling the cloudwatch agent on the ec2 runner instances, the runner contains default config. Configuration can be overridden via `cloudwatch_config`."
description = "Enables the cloudwatch agent on the ec2 runner instances. The runner uses a default config that can be overridden via `cloudwatch_config`."
type = bool
default = true
}

variable "cloudwatch_config" {
description = "(optional) Replaces the module default cloudwatch log config. See https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/CloudWatch-Agent-Configuration-File-Details.html for details."
description = "(optional) Replaces the module's default cloudwatch log config. See https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/CloudWatch-Agent-Configuration-File-Details.html for details."
type = string
default = null
}
Expand Down Expand Up @@ -441,7 +441,7 @@ variable "key_name" {
}

variable "runner_additional_security_group_ids" {
description = "(optional) List of additional security groups IDs to apply to the runner"
description = "(optional) List of additional security groups IDs to apply to the runner."
type = list(string)
default = []
}
Expand All @@ -457,7 +457,7 @@ variable "instance_target_capacity_type" {
}

variable "instance_allocation_strategy" {
description = "The allocation strategy for spot instances. AWS recommends to use `price-capacity-optimized` however the AWS default is `lowest-price`."
description = "The allocation strategy for spot instances. AWS recommends using `price-capacity-optimized` however the AWS default is `lowest-price`."
type = string
default = "lowest-price"
validation {
Expand All @@ -467,7 +467,7 @@ variable "instance_allocation_strategy" {
}

variable "instance_max_spot_price" {
description = "Max price price for spot intances per hour. This variable will be passed to the create fleet as max spot price for the fleet."
description = "Max price price for spot instances per hour. This variable will be passed to the create fleet as max spot price for the fleet."
type = string
default = null
}
Expand All @@ -479,7 +479,7 @@ variable "instance_types" {
}

variable "repository_white_list" {
description = "List of repositories allowed to use the github app"
description = "List of github repository full names (owner/repo_name) that will be allowed to use the github app. Leave empty for no filtering."
type = list(string)
default = []
}
Expand All @@ -490,7 +490,7 @@ variable "delay_webhook_event" {
default = 30
}
variable "job_queue_retention_in_seconds" {
description = "The number of seconds the job is held in the queue before it is purged"
description = "The number of seconds the job is held in the queue before it is purged."
type = number
default = 86400
}
Expand Down Expand Up @@ -578,13 +578,13 @@ variable "enable_ephemeral_runners" {
}

variable "enable_job_queued_check" {
description = "Only scale if the job event received by the scale up lambda is is in the state queued. By default enabled for non ephemeral runners and disabled for ephemeral. Set this variable to overwrite the default behavior."
description = "Only scale if the job event received by the scale up lambda is in the queued state. By default enabled for non ephemeral runners and disabled for ephemeral. Set this variable to overwrite the default behavior."
type = bool
default = null
}

variable "enable_managed_runner_security_group" {
description = "Enabling the default managed security group creation. Unmanaged security groups can be specified via `runner_additional_security_group_ids`."
description = "Enables creation of the default managed security group. Unmanaged security groups can be specified via `runner_additional_security_group_ids`."
type = bool
default = true
}
Expand All @@ -610,7 +610,7 @@ variable "lambda_principals" {
}

variable "enable_fifo_build_queue" {
description = "Enable a FIFO queue to remain the order of events received by the webhook. Suggest to set to true for repo level runners."
description = "Enable a FIFO queue to keep the order of events received by the webhook. Recommended for repo level runners."
type = bool
default = false
}
Expand Down Expand Up @@ -660,7 +660,7 @@ variable "pool_lambda_reserved_concurrent_executions" {
}

variable "pool_config" {
description = "The configuration for updating the pool. The `pool_size` to adjust to by the events triggered by the `schedule_expression`. For example you can configure a cron expression for week days to adjust the pool to 10 and another expression for the weekend to adjust the pool to 1."
description = "The configuration for updating the pool. The `pool_size` to adjust to by the events triggered by the `schedule_expression`. For example you can configure a cron expression for weekdays to adjust the pool to 10 and another expression for the weekend to adjust the pool to 1."
type = list(object({
schedule_expression = string
size = number
Expand All @@ -675,7 +675,7 @@ variable "aws_partition" {
}

variable "disable_runner_autoupdate" {
description = "Disable the auto update of the github runner agent. Be-aware there is a grace period of 30 days, see also the [GitHub article](https://github.blog/changelog/2022-02-01-github-actions-self-hosted-runners-can-now-disable-automatic-updates/)"
description = "Disable the auto update of the github runner agent. Be aware there is a grace period of 30 days, see also the [GitHub article](https://github.blog/changelog/2022-02-01-github-actions-self-hosted-runners-can-now-disable-automatic-updates/)"
type = bool
default = false
}
Expand All @@ -697,7 +697,7 @@ variable "lambda_architecture" {
}

variable "enable_workflow_job_events_queue" {
description = "Enabling this experimental feature will create a secondory sqs queue to wich a copy of the workflow_job event will be delivered."
description = "Enabling this experimental feature will create a secondory sqs queue to which a copy of the workflow_job event will be delivered."
type = bool
default = false
}
Expand All @@ -724,7 +724,7 @@ variable "enable_runner_binaries_syncer" {
variable "enable_event_rule_binaries_syncer" {
type = bool
default = true
description = "Option to disable EventBridge Lambda trigger for the binary syncer, useful to stop automatic updates of binary distribution"
description = "Option to disable EventBridge Lambda trigger for the binary syncer, useful to stop automatic updates of binary distribution."
}

variable "queue_encryption" {
Expand Down Expand Up @@ -752,7 +752,7 @@ variable "enable_user_data_debug_logging_runner" {
}

variable "ssm_paths" {
description = "The root path used in SSM to store configuration and secreets."
description = "The root path used in SSM to store configuration and secrets."
type = object({
root = optional(string, "github-action-runners")
app = optional(string, "app")
Expand Down

0 comments on commit 1c1adb2

Please sign in to comment.