Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Top-level, duplicate Cloudwatch log groups are created #19

Open
zhimsel opened this issue Nov 14, 2024 · 0 comments
Open

Top-level, duplicate Cloudwatch log groups are created #19

zhimsel opened this issue Nov 14, 2024 · 0 comments

Comments

@zhimsel
Copy link

zhimsel commented Nov 14, 2024

While I'm not 100% sure, I think the autoscaler (this repo) is responsible.

Context

When this autoscaler is used in the Lambda created by your Terraform module. I haven't tested this outside of a Lambda.

Problem

So, the Lambda itself is configured to dump its logs in to the /aws/lambda/spacelift-workers-ec2-autoscaler group:

lambda-config

However, three additional groups are also created, which contain identical logs (though split across those three files instead of being combined like the Lambda's log group)

log-groups

Worse yet, they don’t have any log retention settings configured, and get recreated every time the autoscaler runs.


Can you confirm if the autoscaler itself is sending logs to Cloudwatch (in addition to the Lambda sending all its output to its own)?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant