You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* Refactor to loggroup per tuype of logging
* Update modules/runners/variables.tf
Co-authored-by: Gertjan Maas <[email protected]>
* fix: Queue visibility time has to be >= lambda timeout (#467)
* AWS SQS queue visibility times have to be >= the timeout of the associated lambda
* error to do so will result in a terraform provisioning error during initial resource creation (apparently not a modification)
* hence, setting module.runners.aws_sqs_queue.queued_builds.visibility_timeout_seconds to module.runners.module.runners.aws_lambda_function.scale_up.timeout
* Typo
Co-authored-by: Gertjan Maas <[email protected]>
Co-authored-by: Johannes Nicolai <[email protected]>
Copy file name to clipboardExpand all lines: README.md
+4-4Lines changed: 4 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -325,7 +325,7 @@ No requirements.
325
325
| lambda\_s3\_bucket | S3 bucket from which to specify lambda functions. This is an alternative to providing local files directly. |`any`|`null`| no |
326
326
| lambda\_security\_group\_ids | List of subnets in which the action runners will be launched, the subnets needs to be subnets in the `vpc_id`. |`list(string)`|`[]`| no |
327
327
| lambda\_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)`|`[]`| no |
328
-
| logging\_retention\_in\_days | Specifies the number of days you want to retain log events for the lambda log group. Possible values are: 0, 1, 3, 5, 7, 14, 30, 60, 90, 120, 150, 180, 365, 400, 545, 731, 1827, and 3653. |`number`|`7`| no |
328
+
| logging\_retention\_in\_days | Specifies the number of days you want to retain log events for the lambda log group. Possible values are: 0, 1, 3, 5, 7, 14, 30, 60, 90, 120, 150, 180, 365, 400, 545, 731, 1827, and 3653. |`number`|`180`| no |
329
329
| manage\_kms\_key | Let the module manage the KMS key. |`bool`|`true`| no |
330
330
| minimum\_running\_time\_in\_minutes | The time an ec2 action runner should be running at minimum before terminated if non busy. |`number`|`5`| no |
331
331
| role\_path | The path that will be added to role path for created roles, if not set the environment name will be used. |`string`|`null`| no |
@@ -337,13 +337,13 @@ No requirements.
337
337
| runner\_binaries\_syncer\_lambda\_zip | File location of the binaries sync lambda zip file. |`string`|`null`| no |
338
338
| runner\_extra\_labels | Extra labels for the runners (GitHub). Separate each label by a comma |`string`|`""`| no |
339
339
| runner\_iam\_role\_managed\_policy\_arns | Attach AWS or customer-managed IAM policies (by ARN) to the runner IAM role |`list(string)`|`[]`| no |
340
-
| runner\_log\_files | (optional) List of logfiles to send to cloudwatch. | <pre>list(object({<br> file_path = string<br> log_stream_name = string<br> }))</pre> | <pre>[<br> {<br> "file_path": "/var/log/messages",<br> "log_stream_name": "{instance_id}/messages"<br> },<br> {<br> "file_path": "/var/log/user-data.log",<br> "log_stream_name": "{instance_id}/user_data"<br> },<br> {<br> "file_path": "/home/ec2-user/actions-runner/_diag/Runner_**.log",<br> "log_stream_name": "{instance_id}/runner"<br> }<br>]</pre> | no |
| runners\_lambda\_s3\_key | S3 key for runners lambda function. Required if using S3 bucket to specify lambdas. |`any`|`null`| no |
342
342
| runners\_lambda\_s3\_object\_version | S3 object version for runners lambda function. Useful if S3 versioning is enabled on source bucket. |`any`|`null`| no |
343
343
| runners\_lambda\_zip | File location of the lambda zip file for scaling runners. |`string`|`null`| no |
344
344
| runners\_maximum\_count | The maximum number of runners that will be created. |`number`|`3`| no |
345
-
| runners\_scale\_down\_lambda\_timeout | Time out for the scale up lambda in seconds. |`number`|`60`| no |
346
-
| runners\_scale\_up\_lambda\_timeout | Time out for the scale down lambda in seconds. |`number`|`180`| no |
345
+
| runners\_scale\_down\_lambda\_timeout | Time out for the scale down lambda in seconds. |`number`|`60`| no |
346
+
| runners\_scale\_up\_lambda\_timeout | Time out for the scale up lambda in seconds. |`number`|`180`| no |
347
347
| scale\_down\_schedule\_expression | Scheduler expression to check every x for scale down. |`string`|`"cron(*/5 * * * ? *)"`| no |
348
348
| 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 |
349
349
| syncer\_lambda\_s3\_key | S3 key for syncer lambda function. Required if using S3 bucket to specify lambdas. |`any`|`null`| no |
Copy file name to clipboardExpand all lines: modules/runners/README.md
+2-2Lines changed: 2 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -85,7 +85,7 @@ No requirements.
85
85
| lambda\_timeout\_scale\_down | Time out for the scale down lambda in seconds. |`number`|`60`| no |
86
86
| lambda\_timeout\_scale\_up | Time out for the scale up lambda in seconds. |`number`|`60`| no |
87
87
| lambda\_zip | File location of the lambda zip file. |`string`|`null`| no |
88
-
| logging\_retention\_in\_days | Specifies the number of days you want to retain log events for the lambda log group. Possible values are: 0, 1, 3, 5, 7, 14, 30, 60, 90, 120, 150, 180, 365, 400, 545, 731, 1827, and 3653. |`number`|`7`| no |
88
+
| logging\_retention\_in\_days | Specifies the number of days you want to retain log events for the lambda log group. Possible values are: 0, 1, 3, 5, 7, 14, 30, 60, 90, 120, 150, 180, 365, 400, 545, 731, 1827, and 3653. |`number`|`180`| no |
89
89
| market\_options | Market options for the action runner instances. |`string`|`"spot"`| no |
90
90
| minimum\_running\_time\_in\_minutes | The time an ec2 action runner should be running at minimum before terminated if non busy. |`number`|`5`| no |
91
91
| overrides | This maps provides the possibility to override some defaults. The following attributes are supported: `name_sg` overwrite the `Name` tag for all security groups created by this module. `name_runner_agent_instance` override the `Name` tag for the ec2 instance defined in the auto launch configuration. `name_docker_machine_runners` override the `Name` tag spot instances created by the runner agent. |`map(string)`| <pre>{<br> "name_runner": "",<br> "name_sg": ""<br>}</pre> | no |
@@ -96,7 +96,7 @@ No requirements.
96
96
| runner\_as\_root | Run the action runner under the root user. |`bool`|`false`| no |
97
97
| runner\_extra\_labels | Extra labels for the runners (GitHub). Separate each label by a comma |`string`|`""`| no |
98
98
| runner\_iam\_role\_managed\_policy\_arns | Attach AWS or customer-managed IAM policies (by ARN) to the runner IAM role |`list(string)`|`[]`| no |
99
-
| runner\_log\_files | (optional) List of logfiles to send to cloudwatch. | <pre>list(object({<br> file_path = string<br> log_stream_name = string<br> }))</pre> | <pre>[<br> {<br> "file_path": "/var/log/messages",<br> "log_stream_name": "{instance_id}/messages"<br> },<br> {<br> "file_path": "/var/log/user-data.log",<br> "log_stream_name": "{instance_id}/user_data"<br> },<br> {<br> "file_path": "/home/ec2-user/actions-runner/_diag/Runner_**.log",<br> "log_stream_name": "{instance_id}/runner"<br> }<br>]</pre> | no |
99
+
| runner\_log\_files | (optional) List of logfiles to send to cloudwatch, will onlybe usded if `enable_cloudwatch_agent` is set to true. Object description: `log_group_name`: Name of the log group, `prefix_log_group`: module will prefix the log group with `/github-self-hosted-runners/<var.environment>`, `file_path`: path to the log file, `log_stream_name`: name of the log stream. | <pre>list(object({<br> log_group_name = string<br> prefix_log_group = bool<br> file_path = string<br> log_stream_name = string<br> }))</pre> | <pre>[<br> {<br> "file_path": "/var/log/messages",<br> "log_group_name": "messages",<br> "log_stream_name": "{instance_id}",<br> "prefix_log_group": true<br> },<br> {<br> "file_path": "/var/log/user-data.log",<br> "log_group_name": "user_data",<br> "log_stream_name": "{instance_id}",<br> "prefix_log_group": true<br> },<br> {<br> "file_path": "/home/ec2-user/actions-runner/_diag/Runner_**.log",<br> "log_group_name": "runner",<br> "log_stream_name": "{instance_id}",<br> "prefix_log_group": true<br> }<br>]</pre> | no |
100
100
| runners\_lambda\_s3\_key | S3 key for runners lambda function. Required if using S3 bucket to specify lambdas. |`any`|`null`| no |
101
101
| runners\_lambda\_s3\_object\_version | S3 object version for runners lambda function. Useful if S3 versioning is enabled on source bucket. |`any`|`null`| no |
102
102
| runners\_maximum\_count | The maximum number of runners that will be created. |`number`|`3`| no |
Copy file name to clipboardExpand all lines: modules/runners/variables.tf
+15-7Lines changed: 15 additions & 7 deletions
Original file line number
Diff line number
Diff line change
@@ -210,7 +210,7 @@ variable "idle_config" {
210
210
variable"logging_retention_in_days" {
211
211
description="Specifies the number of days you want to retain log events for the lambda log group. Possible values are: 0, 1, 3, 5, 7, 14, 30, 60, 90, 120, 150, 180, 365, 400, 545, 731, 1827, and 3653."
description="(optional) List of logfiles to send to cloudwatch."
261
+
description="(optional) List of logfiles to send to cloudwatch, will only be used if `enable_cloudwatch_agent` is set to true. Object description: `log_group_name`: Name of the log group, `prefix_log_group`: If true, the log group name will be prefixed with `/github-self-hosted-runners/<var.environment>`, `file_path`: path to the log file, `log_stream_name`: name of the log stream."
description="Specifies the number of days you want to retain log events for the lambda log group. Possible values are: 0, 1, 3, 5, 7, 14, 30, 60, 90, 120, 150, 180, 365, 400, 545, 731, 1827, and 3653."
description="(optional) List of logfiles to send to cloudwatch."
279
+
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."
0 commit comments