Implement Automated GitHub Runner Deregistration and Enhanced Infrastructure#45
Merged
Implement Automated GitHub Runner Deregistration and Enhanced Infrastructure#45
Conversation
💰 Infracost reportMonthly estimate generated
*Usage costs can be estimated by updating Infracost Cloud settings, see docs for other options. Estimate details |
Terraform Format and Style 🖌
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR implements a comprehensive automated GitHub runner deregistration system along with enhanced infrastructure components for better monitoring, performance, and reliability.
🚀 Key Features
Automated Runner Deregistration System
Enhanced Infrastructure Components
🔧 Technical Implementation
New Files Added
lifecycle-hook.tf: Auto Scaling lifecycle hook, SNS topic, Lambda function, and IAM roleslambda_layer.tf: Lambda layer for Python dependencieslambda_package/lambda_deregistration.py: Lambda function for GitHub API integrationscripts/deregister-runner.sh: Backup shell script for systemd servicelambda_layer/: Pre-built Python dependencies (PyJWT, cryptography, etc.)Modified Files
scripts/user_data.sh: Enhanced CloudWatch logging, EFS mounting, and deregistration service setupasg.tf: Updated IAM permissions for lifecycle hooks and EFS accesscloudwatch.tf: Enhanced log group configurationkms.tf: Additional KMS permissions for SNS and Lambdassm.tf: Deregistration script parameter storage🛡️ Security Enhancements
📊 Operational Benefits
🔗 Related Issues
This PR addresses multiple enhancement requests and infrastructure improvements:
Closes #25
Closes #41
Closes #42
Closes #43
Closes #44
✅ Testing and Validation
📋 Deployment Notes
🎯 Success Criteria