aws-lambda-to-cloud-run-migration
Installation
SKILL.md
AWS Lambda to Google Cloud Run Migration Skill
This skill assists in the assessment, analysis, and migration of AWS Lambda functions to Google Cloud Run, following the official Google Cloud migration framework.
Available Resources
Before starting or when you need specific details, load the following resources into context:
scripts/analyze_lambda.py: ALWAYS run this script first on the target directory (e.g.,python scripts/analyze_lambda.py <target_dir>). Use the optional--output <dir>flag to control wheremigration_manifest.jsonis written (defaults to the current working directory, not the source tree). Use--summaryfor a human-readable terminal overview. It uses AST parsing, IaC traversal,composer.json,package.json, andrequirements.txtscanning to automatically discover AWS SDK lock-ins, connection pools, and triggers, generating amigration_manifest.jsonfile. You MUST read this JSON file immediately after running the script to understand the application's AWS footprint.references/migration_guide.md: Read this for the end-to-end migration strategy and detailed step-by-step methodology.references/advanced_mapping.md: Read this when you encounter complex AWS services (beyond basic SNS/SQS) that need to be mapped to GCP equivalents.references/containerization.md: Read this for boilerplate Dockerfiles and Cloud Run constraints (e.g., port handling) across Node.js, Python, PHP, Java, and Go.references/iac_translation.md: Read this for migrating AWS SAM, Serverless Framework, AWS CDK, or raw AWS Terraform (.tf) files to GCP. Covers two output paths: Path A (Terraformgoogleprovider) for production-grade IaC, and Path B (Cloud Build +gcloud run deploy) for scripted/CI-CD migrations.references/export_guide.md: Read this for strategies on exporting current AWS configurations (like CloudFormation or SAM templates) for analysis.