Skip to content

Commit

Permalink
feat(lambda): Implement GitHub Actions runner token refresh Lambda fu…
Browse files Browse the repository at this point in the history
…nction

- Added `token_refresh.py` to handle the token refresh logic.
- Integrated AWS Secrets Manager for storing the GitHub registration token.
- Utilized GitHub App authentication for secure API access.
- Scheduled Lambda function to run every 30 minutes using CloudWatch Events.
- Created necessary IAM roles and policies for Lambda execution.

chore(lambda): Add requirements for token refresh Lambda

- Added `requirements.txt` with dependencies: PyJWT and cryptography.

feat(terraform): Configure Lambda function and CloudWatch Events

- Created Terraform configuration for the Lambda function and its dependencies.
- Set up CloudWatch Event Rule to trigger the Lambda function every 30 minutes.
- Configured IAM roles and policies for Lambda execution and Secrets Manager access.

docs(scripts): Add monitoring tools for GitHub Runner ECS services

- Created monitoring scripts to track ECS service health and CloudWatch logs.
- Added README with usage instructions and troubleshooting tips.
- Implemented a continuous monitoring script using rich for better output formatting.

chore(scripts): Add requirements for monitoring scripts

- Added `requirements.txt` for monitoring scripts with dependencies: boto3, botocore, and rich.

fix(scripts): Update monitoring script to use Terraform outputs

- Modified `monitor_runners.py` to fetch necessary configuration from Terraform outputs.
- Improved error handling and logging for better visibility.

feat(varfiles): Add configuration files for Terraform modules

- Created JSON and TFVars files for managing Terraform workspace and GitHub organization settings.
  • Loading branch information
Your Name committed Dec 3, 2025
1 parent 8c8dee0 commit fa18679
Show file tree
Hide file tree
Showing 35 changed files with 5,856 additions and 97 deletions.
8 changes: 8 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,14 @@
# Local .terraform directories
**/.terraform/*

# Lambda packaging artifacts
lambda/package/
lambda/*.zip

# GitHub App private keys (PEM files)
*.pem
*.private-key.pem

# .tfstate files
*.tfstate
*.tfstate.*
Expand Down
18 changes: 18 additions & 0 deletions .terraform_commits
Original file line number Diff line number Diff line change
Expand Up @@ -70,5 +70,23 @@
"commit_message": "Merge branch 'main' of github.e.it.census.gov:CSVD/ghe-runners",
"author": "arnol377",
"timestamp": "2025-05-20T13:49:56.129780"
},
{
"commit_hash": "8c8dee046ff589190d067908249272fbac3c00c0",
"commit_message": "Add GitHub Actions Runner Setup Guide to README.md",
"author": "Your Name",
"timestamp": "2025-06-25T16:10:35.535914"
},
{
"commit_hash": "8c8dee046ff589190d067908249272fbac3c00c0",
"commit_message": "Add GitHub Actions Runner Setup Guide to README.md",
"author": "Your Name",
"timestamp": "2025-09-03T15:04:24.469296"
},
{
"commit_hash": "8c8dee046ff589190d067908249272fbac3c00c0",
"commit_message": "Add GitHub Actions Runner Setup Guide to README.md",
"author": "Your Name",
"timestamp": "2025-10-31T13:13:21.490997"
}
]
Loading

0 comments on commit fa18679

Please sign in to comment.