Skip to content

Feat/lambda runtime upgrade agent - #5

Open
higoyal01 wants to merge 5 commits into
aws-samples:mainfrom
higoyal01:feat/lambda-runtime-upgrade-fixes
Open

Feat/lambda runtime upgrade agent#5
higoyal01 wants to merge 5 commits into
aws-samples:mainfrom
higoyal01:feat/lambda-runtime-upgrade-fixes

Conversation

@higoyal01

Copy link
Copy Markdown
Contributor

Issue #, if available:

Description of changes:
Added Lambda-runtime-upgrade agent which creates a report for Lambda functions running with deprecated runtime and provide recommendations on how to upgrade.

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

…rt generation

- New agent: lambda-runtime-upgrade-agent (worker under ops-excellence)
- 7 MCP tools: discover_lambda_regions, list_functions_by_runtime,
  get_function_configuration, get_function_code, get_runtime_support_status,
  get_deprecated_functions, get_deprecated_functions_multi_region
- Parallel multi-region scanning (ThreadPoolExecutor, 10 workers)
- Region discovery asks user which regions to include in report
- Report template with 2 self-contained sections (5-10 min target)
- Code compatibility analysis for top 5 CRITICAL/HIGH functions
- Runtime knowledge base: Python, Node.js, Java, .NET, Ruby, Custom
…-upgrade-fixes

# Please enter a commit message to explain why this merge is necessary,
# especially if it merges an updated upstream into a topic branch.
#
# Lines starting with '#' will be ignored, and an empty message aborts
# the commit.
…rovements

- Add tests/unit/test_lambda_runtime_tool.py (31 tests) covering:
  - Dispatcher routing (known/unknown tools)
  - _classify_runtime pure logic (deprecated, EOL, active, unknown)
  - Handler success + error paths (missing params, HTTP failures, size caps)
  - Multi-region scan with per-region failure graceful handling

- Update README.md in 3 spots:
  - Hierarchy diagram: add lambda-runtime-upgrade under ops-excellence
  - Project structure: add lambda-runtime-upgrade.md to docs listing
  - Doc-index: add link to docs/agents/lambda-runtime-upgrade.md

- Nice-to-fix (non-blocking):
  - Add refresh cadence comment on RUNTIME_SUPPORT_DATA
  - Add function_name_filter (contains match) to list_functions_by_runtime
  - Add chart axis label rule to agent prompt to prevent $ mislabeling
- New skill at skills/lambda-runtime-upgrade/ (SKILL.md + reference/)
- Same functionality as the lambda-runtime-upgrade-agent, packaged as a
  portable skill usable in any MCP-compatible / DevOps agent environment
- Three-path routing (MCP tools / AWS CLI / delegate) matching existing skills
- Upfront region-selection Q&A to scope work before scanning (speed)
- Parallel multi-region scanning (Path M via multi_region tool; Path A via
  background shell jobs)
- Bundled reference/runtime-migration-kb.md: deprecation dates + per-family
  breaking changes so the skill is self-contained and portable
- Read-only guardrails; never mutates Lambda functions
- Registered in README skills table
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.

1 participant