-
Notifications
You must be signed in to change notification settings - Fork 3
Remove manual lifecycle scripts in favor of Lambda workflow #5
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
base: main
Are you sure you want to change the base?
Remove manual lifecycle scripts in favor of Lambda workflow #5
Conversation
The Lambda/OIDC workflow (tools/create-investigation-lambda.sh) is the canonical path for investigation lifecycle management. The manual scripts in deploy/regional/examples/ bypassed Keycloak authentication and required direct AWS IAM credentials - they were a parallel path causing confusion. Changes: - Remove deploy/regional/examples/ directory (6 shell scripts) - Remove untracked test scripts from tag-isolation development - Update all documentation to reference Lambda workflow - Update docs/runbooks to use AWS CLI directly for cleanup - Update lambda handler and Terraform to remove deleted script references The single recommended workflow is now: tools/create-investigation-lambda.sh <cluster-id> <investigation-id> Co-Authored-By: Claude Sonnet 4.5 (1M context) <noreply@anthropic.com>
PR Compliance Guide 🔍Below is a summary of compliance checks for this PR:
Compliance status legend🟢 - Fully Compliant🟡 - Partial Compliant 🔴 - Not Compliant ⚪ - Requires Further Human Verification 🏷️ - Compliance label |
|||||||||||||||||||||||
PR Code Suggestions ✨Explore these optional code suggestions:
|
||||||||||||||
User description
Summary
Removes the manual lifecycle scripts in
deploy/regional/examples/and consolidates on the Lambda/OIDC workflow as the single canonical path for investigation management.Background
The Lambda/OIDC workflow (
tools/create-investigation-lambda.sh+tools/sre-auth/) provides:The manual scripts in
deploy/regional/examples/were a parallel path that:Changes
Deleted Files
deploy/regional/examples/directory (6 shell scripts)create_investigation.shlaunch_task.shjoin_task.shstop_task.shclose_investigation.shbuild-task-def.jqDocumentation Updates
CLAUDE.md- Removed examples/ from structure, removed "Manual Lifecycle Scripts" sectionREADME.md- Removed manual scripts referencesdeploy/regional/README.md- Replaced manual workflow with Lambda-based workflowdocs/runbooks/investigation-workflow.md- Updated cleanup phases to use AWS CLIdocs/runbooks/troubleshooting.md- Updated troubleshooting commandsdocs/configuration/hcp-boundary-setup.md- Removed create_incident.sh referencesdocs/configuration/integration-scripts.md- Updated to generic automation examplesdocs/architecture/overview.md- Updated Mermaid diagramCode Updates
lambda/create-investigation/handler.py- Updated test reference commentdeploy/regional/lambda-create-investigation.tf- Removed deleted script from excludesTest Results
LocalStack integration tests: 22 passed ✓
Migration Path
The single recommended workflow is now:
For manual cleanup operations, users can reference the AWS CLI commands documented in
deploy/regional/README.mdanddocs/runbooks/investigation-workflow.md.🤖 Generated with Claude Code
PR Type
Enhancement
Description
Removes 6 manual lifecycle scripts from
deploy/regional/examples/Consolidates on Lambda/OIDC workflow as single canonical path
Updates all documentation to reference Lambda-based workflow
Replaces manual scripts with AWS CLI commands for cleanup operations
Diagram Walkthrough
File Walkthrough
9 files
Update test reference comment to new locationRemove examples directory from structure documentationRemove manual scripts section and examples referencesReplace manual workflow with Lambda-based workflowUpdate Mermaid diagram to reflect Lambda workflowRemove create_incident.sh referencesUpdate to generic automation examples without scriptsUpdate cleanup phases to use AWS CLI directlyUpdate troubleshooting commands to AWS CLI6 files
Remove manual investigation cleanup scriptRemove manual investigation creation scriptRemove manual task connection scriptRemove manual task launch scriptRemove manual task stop scriptRemove jq task definition transformation script1 files
Remove deleted test script from Lambda excludes