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
{{ message }}
This repository was archived by the owner on Jan 16, 2025. It is now read-only.
feat: add option to format logging in JSON for lambdas (#1228)
* feat(log): Adding Support for JSON logging
* Passing in log_type to other lambdas
* Casting e as Error
* Add log_level variable, fix formatting
* Correcting failed resolution
* Using latest releases for testing
* Passing in log_level to sub-modules
* Update terraform.yml
* Manually removing `node-fetch`
* Moving logger object to new file
* Resolving merge from develop
Wouldn't be a conflict resolve without a miss
* Logging when job is not queued
* Updating handler names
| <aname="input_distribution_bucket_name"></a> [distribution\_bucket\_name](#input\_distribution\_bucket\_name)| Bucket for storing the action runner distribution. |`string`| n/a | yes |
80
-
| <aname="input_environment"></a> [environment](#input\_environment)| A name that identifies the environment, used as prefix and for tagging. |`string`| n/a | yes |
81
-
| <aname="input_lambda_s3_bucket"></a> [lambda\_s3\_bucket](#input\_lambda\_s3\_bucket)| S3 bucket from which to specify lambda functions. This is an alternative to providing local files directly. |`any`|`null`| no |
82
-
| <aname="input_lambda_schedule_expression"></a> [lambda\_schedule\_expression](#input\_lambda\_schedule\_expression)| Scheduler expression for action runner binary syncer. |`string`|`"cron(27 * * * ? *)"`| no |
83
-
| <aname="input_lambda_security_group_ids"></a> [lambda\_security\_group\_ids](#input\_lambda\_security\_group\_ids)| List of security group IDs associated with the Lambda function. |`list(string)`|`[]`| no |
84
-
| <aname="input_lambda_subnet_ids"></a> [lambda\_subnet\_ids](#input\_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 |
85
-
| <aname="input_lambda_timeout"></a> [lambda\_timeout](#input\_lambda\_timeout)| Time out of the lambda in seconds. |`number`|`300`| no |
86
-
| <aname="input_lambda_zip"></a> [lambda\_zip](#input\_lambda\_zip)| File location of the lambda zip file. |`string`|`null`| no |
87
-
| <aname="input_logging_retention_in_days"></a> [logging\_retention\_in\_days](#input\_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
-
| <aname="input_role_path"></a> [role\_path](#input\_role\_path)| The path that will be added to the role, if not set the environment name will be used. |`string`|`null`| no |
89
-
| <aname="input_role_permissions_boundary"></a> [role\_permissions\_boundary](#input\_role\_permissions\_boundary)| Permissions boundary that will be added to the created role for the lambda. |`string`|`null`| no |
90
-
| <aname="input_runner_allow_prerelease_binaries"></a> [runner\_allow\_prerelease\_binaries](#input\_runner\_allow\_prerelease\_binaries)| Allow the runners to update to prerelease binaries. |`bool`|`false`| no |
91
-
| <aname="input_runner_architecture"></a> [runner\_architecture](#input\_runner\_architecture)| The platform architecture for the runner instance (x64, arm64), defaults to 'x64' |`string`|`"x64"`| no |
92
-
| <aname="input_syncer_lambda_s3_key"></a> [syncer\_lambda\_s3\_key](#input\_syncer\_lambda\_s3\_key)| S3 key for syncer lambda function. Required if using S3 bucket to specify lambdas. |`any`|`null`| no |
93
-
| <aname="input_syncer_lambda_s3_object_version"></a> [syncer\_lambda\_s3\_object\_version](#input\_syncer\_lambda\_s3\_object\_version)| S3 object version for syncer lambda function. Useful if S3 versioning is enabled on source bucket. |`any`|`null`| no |
94
-
| <aname="input_tags"></a> [tags](#input\_tags)| Map of tags that will be added to created resources. By default resources will be tagged with name and environment. |`map(string)`|`{}`| no |
| distribution\_bucket\_name | Bucket for storing the action runner distribution. |`string`| n/a | yes |
80
+
| environment | A name that identifies the environment, used as prefix and for tagging. |`string`| n/a | yes |
81
+
| lambda\_s3\_bucket | S3 bucket from which to specify lambda functions. This is an alternative to providing local files directly. |`any`|`null`| no |
82
+
| lambda\_schedule\_expression | Scheduler expression for action runner binary syncer. |`string`|`"cron(27 * * * ? *)"`| no |
83
+
| lambda\_security\_group\_ids | List of security group IDs associated with the Lambda function. |`list(string)`|`[]`| no |
84
+
| 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 |
85
+
| lambda\_timeout | Time out of the lambda in seconds. |`number`|`300`| no |
86
+
| lambda\_zip | File location of the lambda zip file. |`string`|`null`| no |
87
+
| log\_level | Logging level for lambda logging. Valid values are 'silly', 'trace', 'debug', 'info', 'warn', 'error', 'fatal'. |`string`|`"info"`| no |
88
+
| log\_type | Logging format for lambda logging. Valid values are 'json', 'pretty', 'hidden'. |`string`|`"pretty"`| no |
89
+
| 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 |
90
+
| role\_path | The path that will be added to the role, if not set the environment name will be used. |`string`|`null`| no |
91
+
| role\_permissions\_boundary | Permissions boundary that will be added to the created role for the lambda. |`string`|`null`| no |
92
+
| runner\_allow\_prerelease\_binaries | Allow the runners to update to prerelease binaries. |`bool`|`false`| no |
93
+
| runner\_architecture | The platform architecture for the runner instance (x64, arm64), defaults to 'x64' |`string`|`"x64"`| no |
94
+
| syncer\_lambda\_s3\_key | S3 key for syncer lambda function. Required if using S3 bucket to specify lambdas. |`any`|`null`| no |
95
+
| syncer\_lambda\_s3\_object\_version | S3 object version for syncer lambda function. Useful if S3 versioning is enabled on source bucket. |`any`|`null`| no |
96
+
| tags | Map of tags that will be added to created resources. By default resources will be tagged with name and environment. |`map(string)`|`{}`| no |
Copy file name to clipboardExpand all lines: modules/runners/README.md
+2
Original file line number
Diff line number
Diff line change
@@ -132,6 +132,8 @@ No modules.
132
132
| <aname="input_lambda_timeout_scale_down"></a> [lambda\_timeout\_scale\_down](#input\_lambda\_timeout\_scale\_down)| Time out for the scale down lambda in seconds. |`number`|`60`| no |
133
133
| <aname="input_lambda_timeout_scale_up"></a> [lambda\_timeout\_scale\_up](#input\_lambda\_timeout\_scale\_up)| Time out for the scale up lambda in seconds. |`number`|`60`| no |
134
134
| <aname="input_lambda_zip"></a> [lambda\_zip](#input\_lambda\_zip)| File location of the lambda zip file. |`string`|`null`| no |
135
+
| <aname="input_log_level"></a> [log\_level](#input\_log\_level)| Logging level for lambda logging. Valid values are 'silly', 'trace', 'debug', 'info', 'warn', 'error', 'fatal'. |`string`|`"info"`| no |
136
+
| <aname="input_log_type"></a> [log\_type](#input\_log\_type)| Logging format for lambda logging. Valid values are 'json', 'pretty', 'hidden'. |`string`|`"pretty"`| no |
135
137
| <aname="input_logging_retention_in_days"></a> [logging\_retention\_in\_days](#input\_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 |
136
138
| <aname="input_market_options"></a> [market\_options](#input\_market\_options)| Market options for the action runner instances. |`string`|`"spot"`| no |
137
139
| <aname="input_minimum_running_time_in_minutes"></a> [minimum\_running\_time\_in\_minutes](#input\_minimum\_running\_time\_in\_minutes)| The time an ec2 action runner should be running at minimum before terminated if non busy. |`number`|`5`| no |
0 commit comments