Commit 6d3b7db
authored
fix(logging): update log_class to log_group_class in CloudWatch agent configuration (#5073)
### Description
CloudWatch agent config stored in SSM used log_class inside each
collect_list entry. The agent’s JSON schema only allows log_group_class
there, so validation failed with “Additional property log_class is not
allowed” and runner user-data exited before the GitHub runner started
([issue
#5065](#5065)).
This PR maps the Terraform log_class value to log_group_class in the
serialized logfiles blob passed to cloudwatch_config.json, and updates
loggroups_classes to read log_group_class from local.logfiles so
aws_cloudwatch_log_group behavior stays aligned.
## Related Issues
Fixes
[#5065](#5065)1 parent e4b12ae commit 6d3b7db
1 file changed
+3
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
33 | 33 | | |
34 | 34 | | |
35 | 35 | | |
| 36 | + | |
36 | 37 | | |
37 | 38 | | |
38 | 39 | | |
39 | 40 | | |
40 | | - | |
| 41 | + | |
41 | 42 | | |
42 | 43 | | |
43 | 44 | | |
44 | 45 | | |
45 | 46 | | |
46 | 47 | | |
47 | 48 | | |
48 | | - | |
| 49 | + | |
49 | 50 | | |
50 | 51 | | |
51 | 52 | | |
| |||
0 commit comments