Skip to content

Conversation

@hskiba
Copy link
Member

@hskiba hskiba commented Jun 6, 2025

Summary

  • Add explicit CloudWatch log group definitions with 14-day retention
  • Prevent indefinite log storage and reduce AWS costs

Changes

  • Added GitHubActionHookFunctionLogGroup resource for Lambda function logs
  • Added EC2RunnerLogGroup resource for EC2 instance logs
  • Both log groups configured with RetentionInDays: 14

Impact

This change will:

  • Automatically expire logs older than 14 days
  • Reduce CloudWatch Logs storage costs
  • Maintain compliance with log retention best practices

The 14-day retention period provides sufficient time for debugging and troubleshooting while preventing unnecessary log accumulation.

- Define explicit log groups for Lambda function and EC2 instances
- Set RetentionInDays to 14 to prevent indefinite log storage
- Reduces storage costs by automatically expiring old logs
@hskiba hskiba merged commit e5e652f into main Jun 10, 2025
1 check passed
@hskiba hskiba deleted the add-log-retention branch June 10, 2025 06:26
hskiba added a commit that referenced this pull request Jun 17, 2025
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

Successfully merging this pull request may close these issues.

2 participants