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
* feat: stream logging to cloudwatch of the agent, user_data en system messages
* Refactor and make cloudwatch agent optional
* Apply suggestions from code review
Co-authored-by: Gertjan Maas <[email protected]>
* Update docs
Co-authored-by: Gertjan Maas <[email protected]>
| block\_device\_mappings | The EC2 instance block device configuration. Takes the following keys: `device_name`, `delete_on_termination`, `volume_type`, `volume_size`, `encrypted`, `iops`|`map(string)`|`{}`| no |
69
+
| 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 |
69
70
| create\_service\_linked\_role\_spot | (optional) create the serviced linked role for spot instances that is required by the scale-up lambda. |`bool`|`false`| no |
71
+
| 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 |
| enable\_ssm\_on\_runners | Enable to allow access the runner instances for debugging purposes via SSM. Note that this adds additional permissions to the runner instances. |`bool`| n/a | yes |
72
74
| encryption | KMS key to encrypted lambda environment secrets. Either provide a key and `encrypt` set to `true`. Or set the key to `null` and encrypt to `false`. | <pre>object({<br> kms_key_id = string<br> encrypt = bool<br> })</pre> | n/a | yes |
@@ -88,6 +90,8 @@ No requirements.
88
90
| runner\_architecture | The platform architecture of the runner instance\_type. |`string`|`"x64"`| no |
89
91
| runner\_as\_root | Run the action runner under the root user. |`bool`|`false`| no |
90
92
| runner\_extra\_labels | Extra labels for the runners (GitHub). Separate each label by a comma |`string`|`""`| no |
93
+
| runner\_iam\_role\_managed\_policy\_arns | Attach AWS or customer-managed IAM policies (by ARN) to the runner IAM role |`list(string)`|`[]`| no |
94
+
| 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 |
91
95
| runners\_lambda\_s3\_key | S3 key for runners lambda function. Required if using S3 bucket to specify lambdas. |`any`|`null`| no |
92
96
| runners\_lambda\_s3\_object\_version | S3 object version for runners lambda function. Useful if S3 versioning is enabled on source bucket. |`any`|`null`| no |
93
97
| runners\_maximum\_count | The maximum number of runners that will be created. |`number`|`3`| no |
description="Enabling the cloudwatch agent on the ec2 runner instances, the runner contains default config. Configuration can be overridden via `cloudwatch_config`."
250
+
type=bool
251
+
default=true
252
+
}
253
+
254
+
variable"cloudwatch_config" {
255
+
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."
256
+
type=string
257
+
default=null
258
+
}
259
+
260
+
variable"runner_log_files" {
261
+
description="(optional) List of logfiles to send to cloudwatch."
description="Enabling the cloudwatch agent on the ec2 runner instances, the runner contains default config. Configuration can be overridden via `cloudwatch_config`."
268
+
type=bool
269
+
default=true
270
+
}
271
+
272
+
variable"cloudwatch_config" {
273
+
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."
274
+
type=string
275
+
default=null
276
+
}
277
+
278
+
variable"runner_log_files" {
279
+
description="(optional) List of logfiles to send to cloudwatch."
0 commit comments