lambda-forge-cli-aws 1.0.0__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- lambda_forge_cli_aws-1.0.0.dist-info/METADATA +352 -0
- lambda_forge_cli_aws-1.0.0.dist-info/RECORD +80 -0
- lambda_forge_cli_aws-1.0.0.dist-info/WHEEL +4 -0
- lambda_forge_cli_aws-1.0.0.dist-info/entry_points.txt +2 -0
- lambda_forge_cli_aws-1.0.0.dist-info/licenses/LICENSE +189 -0
- lambdaforge/__init__.py +10 -0
- lambdaforge/bedrock_client.py +109 -0
- lambdaforge/cli.py +428 -0
- lambdaforge/deploy.py +308 -0
- lambdaforge/logs.py +185 -0
- lambdaforge/renderer.py +72 -0
- lambdaforge/spec_generator.py +171 -0
- lambdaforge/status.py +111 -0
- lambdaforge/templates.py +106 -0
- lambdaforge/upgrade.py +231 -0
- templates/python-api/cookiecutter.json +12 -0
- templates/python-api/{{cookiecutter.project_slug}}/.github/workflows/dependabot.yml +22 -0
- templates/python-api/{{cookiecutter.project_slug}}/.github/workflows/deploy.yml +90 -0
- templates/python-api/{{cookiecutter.project_slug}}/.gitignore +65 -0
- templates/python-api/{{cookiecutter.project_slug}}/Dockerfile +11 -0
- templates/python-api/{{cookiecutter.project_slug}}/README.md +130 -0
- templates/python-api/{{cookiecutter.project_slug}}/infrastructure/app.js +26 -0
- templates/python-api/{{cookiecutter.project_slug}}/infrastructure/cdk.json +20 -0
- templates/python-api/{{cookiecutter.project_slug}}/infrastructure/lib/stack.js +155 -0
- templates/python-api/{{cookiecutter.project_slug}}/infrastructure/package.json +17 -0
- templates/python-api/{{cookiecutter.project_slug}}/pyproject.toml +66 -0
- templates/python-api/{{cookiecutter.project_slug}}/requirements-dev.txt +8 -0
- templates/python-api/{{cookiecutter.project_slug}}/requirements.txt +3 -0
- templates/python-api/{{cookiecutter.project_slug}}/src/handler.py +93 -0
- templates/python-api/{{cookiecutter.project_slug}}/src/utils/logger.py +39 -0
- templates/python-api/{{cookiecutter.project_slug}}/tests/conftest.py +22 -0
- templates/python-api/{{cookiecutter.project_slug}}/tests/test_handler.py +68 -0
- templates/python-cron/cookiecutter.json +13 -0
- templates/python-cron/{{cookiecutter.project_slug}}/.gitignore +65 -0
- templates/python-cron/{{cookiecutter.project_slug}}/Dockerfile +11 -0
- templates/python-cron/{{cookiecutter.project_slug}}/infrastructure/app.js +25 -0
- templates/python-cron/{{cookiecutter.project_slug}}/infrastructure/cdk.json +3 -0
- templates/python-cron/{{cookiecutter.project_slug}}/infrastructure/lib/stack.js +55 -0
- templates/python-cron/{{cookiecutter.project_slug}}/infrastructure/package.json +17 -0
- templates/python-cron/{{cookiecutter.project_slug}}/pyproject.toml +56 -0
- templates/python-cron/{{cookiecutter.project_slug}}/requirements.txt +2 -0
- templates/python-cron/{{cookiecutter.project_slug}}/src/handler.py +53 -0
- templates/python-cron/{{cookiecutter.project_slug}}/tests/conftest.py +22 -0
- templates/python-cron/{{cookiecutter.project_slug}}/tests/test_handler.py +48 -0
- templates/python-queue/cookiecutter.json +12 -0
- templates/python-queue/{{cookiecutter.project_slug}}/.gitignore +65 -0
- templates/python-queue/{{cookiecutter.project_slug}}/Dockerfile +11 -0
- templates/python-queue/{{cookiecutter.project_slug}}/infrastructure/app.js +25 -0
- templates/python-queue/{{cookiecutter.project_slug}}/infrastructure/cdk.json +3 -0
- templates/python-queue/{{cookiecutter.project_slug}}/infrastructure/lib/stack.js +79 -0
- templates/python-queue/{{cookiecutter.project_slug}}/infrastructure/package.json +17 -0
- templates/python-queue/{{cookiecutter.project_slug}}/pyproject.toml +56 -0
- templates/python-queue/{{cookiecutter.project_slug}}/requirements.txt +2 -0
- templates/python-queue/{{cookiecutter.project_slug}}/src/handler.py +64 -0
- templates/python-queue/{{cookiecutter.project_slug}}/tests/conftest.py +22 -0
- templates/python-queue/{{cookiecutter.project_slug}}/tests/test_handler.py +60 -0
- templates/python-s3/cookiecutter.json +13 -0
- templates/python-s3/{{cookiecutter.project_slug}}/.gitignore +65 -0
- templates/python-s3/{{cookiecutter.project_slug}}/Dockerfile +11 -0
- templates/python-s3/{{cookiecutter.project_slug}}/infrastructure/app.js +25 -0
- templates/python-s3/{{cookiecutter.project_slug}}/infrastructure/cdk.json +3 -0
- templates/python-s3/{{cookiecutter.project_slug}}/infrastructure/lib/stack.js +89 -0
- templates/python-s3/{{cookiecutter.project_slug}}/infrastructure/package.json +17 -0
- templates/python-s3/{{cookiecutter.project_slug}}/pyproject.toml +56 -0
- templates/python-s3/{{cookiecutter.project_slug}}/requirements.txt +2 -0
- templates/python-s3/{{cookiecutter.project_slug}}/src/handler.py +86 -0
- templates/python-s3/{{cookiecutter.project_slug}}/tests/conftest.py +22 -0
- templates/python-s3/{{cookiecutter.project_slug}}/tests/test_handler.py +71 -0
- templates/python-stream/cookiecutter.json +12 -0
- templates/python-stream/{{cookiecutter.project_slug}}/.gitignore +65 -0
- templates/python-stream/{{cookiecutter.project_slug}}/Dockerfile +11 -0
- templates/python-stream/{{cookiecutter.project_slug}}/infrastructure/app.js +25 -0
- templates/python-stream/{{cookiecutter.project_slug}}/infrastructure/cdk.json +3 -0
- templates/python-stream/{{cookiecutter.project_slug}}/infrastructure/lib/stack.js +81 -0
- templates/python-stream/{{cookiecutter.project_slug}}/infrastructure/package.json +17 -0
- templates/python-stream/{{cookiecutter.project_slug}}/pyproject.toml +56 -0
- templates/python-stream/{{cookiecutter.project_slug}}/requirements.txt +2 -0
- templates/python-stream/{{cookiecutter.project_slug}}/src/handler.py +69 -0
- templates/python-stream/{{cookiecutter.project_slug}}/tests/conftest.py +22 -0
- templates/python-stream/{{cookiecutter.project_slug}}/tests/test_handler.py +64 -0
|
@@ -0,0 +1,352 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: lambda-forge-cli-aws
|
|
3
|
+
Version: 1.0.0
|
|
4
|
+
Summary: Zero to Lambda production-ready in 60 seconds, with Kiro specs included. Powered by Amazon Bedrock + AWS CDK.
|
|
5
|
+
Project-URL: Homepage, https://github.com/lambdaforge/lambdaforge
|
|
6
|
+
Project-URL: Documentation, https://lambdaforge.dev/docs
|
|
7
|
+
Project-URL: Repository, https://github.com/lambdaforge/lambdaforge
|
|
8
|
+
Project-URL: Issues, https://github.com/lambdaforge/lambdaforge/issues
|
|
9
|
+
Author-email: LambdaForge Team <team@lambdaforge.dev>
|
|
10
|
+
License: Apache-2.0
|
|
11
|
+
License-File: LICENSE
|
|
12
|
+
Keywords: aws,bedrock,cdk,developer-tools,kiro,lambda,scaffolding
|
|
13
|
+
Classifier: Development Status :: 4 - Beta
|
|
14
|
+
Classifier: Intended Audience :: Developers
|
|
15
|
+
Classifier: License :: OSI Approved :: Apache Software License
|
|
16
|
+
Classifier: Operating System :: OS Independent
|
|
17
|
+
Classifier: Programming Language :: Python :: 3.12
|
|
18
|
+
Classifier: Topic :: Software Development
|
|
19
|
+
Requires-Python: >=3.12
|
|
20
|
+
Requires-Dist: boto3>=1.34.0
|
|
21
|
+
Requires-Dist: click>=8.1.7
|
|
22
|
+
Requires-Dist: cookiecutter>=2.5.0
|
|
23
|
+
Requires-Dist: gitpython>=3.1.40
|
|
24
|
+
Requires-Dist: jinja2>=3.1.3
|
|
25
|
+
Requires-Dist: pydantic>=2.5.0
|
|
26
|
+
Requires-Dist: pyyaml>=6.0.1
|
|
27
|
+
Requires-Dist: questionary>=2.0.1
|
|
28
|
+
Requires-Dist: rich>=13.7.0
|
|
29
|
+
Provides-Extra: dev
|
|
30
|
+
Requires-Dist: freezegun>=1.4.0; extra == 'dev'
|
|
31
|
+
Requires-Dist: moto[apigateway,dynamodb,lambda,s3,sqs]>=5.0.0; extra == 'dev'
|
|
32
|
+
Requires-Dist: mypy>=1.10.0; extra == 'dev'
|
|
33
|
+
Requires-Dist: pre-commit>=3.7.0; extra == 'dev'
|
|
34
|
+
Requires-Dist: pytest-cov>=4.1.0; extra == 'dev'
|
|
35
|
+
Requires-Dist: pytest>=8.0.0; extra == 'dev'
|
|
36
|
+
Requires-Dist: ruff>=0.4.0; extra == 'dev'
|
|
37
|
+
Description-Content-Type: text/markdown
|
|
38
|
+
|
|
39
|
+
# LambdaForge
|
|
40
|
+
|
|
41
|
+
> **Despliega proyectos AWS Lambda listos para producción en 60 segundos — con specs generadas por IA, ARM64 por defecto, y mejores prácticas Well-Architected integradas.**
|
|
42
|
+
|
|
43
|
+
[](https://aws.amazon.com/lambda/)
|
|
44
|
+
[](https://www.python.org/)
|
|
45
|
+
[](https://kiro.dev)
|
|
46
|
+
[](LICENSE)
|
|
47
|
+
[](#)
|
|
48
|
+
|
|
49
|
+
LambdaForge es una **herramienta CLI** que genera un proyecto completo de AWS Lambda con un solo comando, genera **Kiro specs automáticamente** usando Amazon Bedrock, y despliega mediante **AWS CDK**. Elimina las 2-3 horas de código repetitivo que todo desarrollador serverless repite en cada nuevo proyecto.
|
|
50
|
+
|
|
51
|
+
## ¿Por qué LambdaForge?
|
|
52
|
+
|
|
53
|
+
Cada vez que inicias un nuevo proyecto Lambda debes:
|
|
54
|
+
|
|
55
|
+
1. ✍️ Configurar `pyproject.toml`, `requirements.txt`, `.gitignore`
|
|
56
|
+
2. 🏗️ Escribir el handler, logger, tracer, métricas
|
|
57
|
+
3. 📐 Configurar DynamoDB, IAM, API Gateway en CDK
|
|
58
|
+
4. 🧪 Conectar pytest + moto para pruebas
|
|
59
|
+
5. 🚀 Construir un pipeline CI/CD con GitHub Actions
|
|
60
|
+
6. 📝 Escribir specs en `.kiro/specs/`
|
|
61
|
+
|
|
62
|
+
**LambdaForge hace todo esto en 60 segundos**, y usa **Amazon Bedrock (Claude Sonnet 4.5)** para auto-generar tus `.kiro/specs/` basándose en lo que tu proyecto debe hacer.
|
|
63
|
+
|
|
64
|
+
## Arquitectura
|
|
65
|
+
|
|
66
|
+
```
|
|
67
|
+
┌─────────────────┐
|
|
68
|
+
│ Desarrollador │
|
|
69
|
+
│ $ lambdaforge │
|
|
70
|
+
│ new │
|
|
71
|
+
└────────┬────────┘
|
|
72
|
+
│
|
|
73
|
+
▼
|
|
74
|
+
┌─────────────────┐ ┌──────────────────┐
|
|
75
|
+
│ CLI (Click) │─────▶│ Amazon Bedrock │
|
|
76
|
+
│ - new │ │ Claude Sonnet 4.5│
|
|
77
|
+
│ - upgrade │ └─────────┬────────┘
|
|
78
|
+
│ - templates │ │
|
|
79
|
+
│ - deploy │ ▼
|
|
80
|
+
└────────┬────────┘ ┌──────────────────┐
|
|
81
|
+
│ │ Kiro Specs (.md) │
|
|
82
|
+
│ └──────────────────┘
|
|
83
|
+
▼
|
|
84
|
+
┌─────────────────┐
|
|
85
|
+
│ Cookiecutter │ (5 plantillas: api, cron, queue, stream, s3)
|
|
86
|
+
│ + CDK + Tests │
|
|
87
|
+
└────────┬────────┘
|
|
88
|
+
│
|
|
89
|
+
▼
|
|
90
|
+
┌─────────────────┐
|
|
91
|
+
│ Proyecto listo │ -> git init -> git push -> cdk deploy
|
|
92
|
+
└─────────────────┘
|
|
93
|
+
```
|
|
94
|
+
|
|
95
|
+
## Características
|
|
96
|
+
|
|
97
|
+
- 🏗️ **5 Plantillas Listas para Producción**: REST API, Cron Programado, Cola SQS, Stream Kinesis, Evento S3
|
|
98
|
+
- 🤖 **Specs Generadas por IA**: Kiro specs auto-generadas por Amazon Bedrock (Claude Sonnet 4.5)
|
|
99
|
+
- 🏎️ **ARM64 por Defecto**: 20% más barato, 19% más rápido que Lambda x86_64
|
|
100
|
+
- 🔒 **Tags Well-Architected**: Todos los recursos etiquetados con `Project`, `Environment`, `CostCenter`, `ManagedBy`
|
|
101
|
+
- 📊 **Observabilidad Integrada**: aws-lambda-powertools (logger, tracer, metrics) preconfigurado
|
|
102
|
+
- 🧪 **Pruebas con moto**: Mocking de AWS para CI local sin llamadas reales a AWS
|
|
103
|
+
- 🚀 **CI/CD con OIDC**: Workflow de GitHub Actions usando OIDC (sin claves AWS de larga duración)
|
|
104
|
+
- 💰 **Optimizado para Free Tier**: Diseñado para caber en el AWS Free Tier
|
|
105
|
+
- 🌐 **Roadmap Multi-Lenguaje**: Python (ahora), TypeScript, Go, Rust (próximamente)
|
|
106
|
+
|
|
107
|
+
## Inicio Rápido
|
|
108
|
+
|
|
109
|
+
### Instalación
|
|
110
|
+
|
|
111
|
+
```bash
|
|
112
|
+
# Desde PyPI (planificado)
|
|
113
|
+
pip install lambdaforge
|
|
114
|
+
|
|
115
|
+
# Desde código fuente
|
|
116
|
+
git clone https://github.com/lambdaforge/lambdaforge
|
|
117
|
+
cd lambdaforge
|
|
118
|
+
pip install -e ".[dev]"
|
|
119
|
+
```
|
|
120
|
+
|
|
121
|
+
### Crear un nuevo proyecto Lambda
|
|
122
|
+
|
|
123
|
+
```bash
|
|
124
|
+
lambdaforge new
|
|
125
|
+
|
|
126
|
+
# Prompts interactivos:
|
|
127
|
+
# ? Project name: my-awesome-api
|
|
128
|
+
# ? Template: python-api
|
|
129
|
+
# ? Description: REST API for user management
|
|
130
|
+
# ? Author: Ada Lovelace
|
|
131
|
+
# ? Email: ada@example.com
|
|
132
|
+
# ? AWS region: us-east-1
|
|
133
|
+
|
|
134
|
+
# Genera el proyecto completo + Kiro specs en 60 segundos:
|
|
135
|
+
# ✓ Rendering template
|
|
136
|
+
# ✓ Generating Kiro specs via Bedrock
|
|
137
|
+
# ✓ Initializing git
|
|
138
|
+
# ✓ Project ready at ./my-awesome-api
|
|
139
|
+
|
|
140
|
+
cd my-awesome-api
|
|
141
|
+
ls -la
|
|
142
|
+
# .kiro/
|
|
143
|
+
# specs/
|
|
144
|
+
# 00-overview.md (generado por IA)
|
|
145
|
+
# 01-architecture.md (generado por IA)
|
|
146
|
+
# 02-acceptance-criteria.md (generado por IA)
|
|
147
|
+
# 03-implementation-plan.md (generado por IA)
|
|
148
|
+
# src/
|
|
149
|
+
# handler.py
|
|
150
|
+
# utils/logger.py
|
|
151
|
+
# tests/
|
|
152
|
+
# conftest.py
|
|
153
|
+
# test_handler.py
|
|
154
|
+
# infrastructure/
|
|
155
|
+
# app.js
|
|
156
|
+
# cdk.json
|
|
157
|
+
# lib/my-awesome-api-stack.js
|
|
158
|
+
# .github/workflows/
|
|
159
|
+
# deploy.yml
|
|
160
|
+
# Dockerfile
|
|
161
|
+
# pyproject.toml
|
|
162
|
+
# README.md
|
|
163
|
+
```
|
|
164
|
+
|
|
165
|
+
### Desplegar en AWS
|
|
166
|
+
|
|
167
|
+
```bash
|
|
168
|
+
cd my-awesome-api
|
|
169
|
+
npx cdk bootstrap # solo la primera vez
|
|
170
|
+
npx cdk deploy
|
|
171
|
+
# o mediante LambdaForge (incluye empaquetado de dependencias + barra de progreso)
|
|
172
|
+
lambdaforge deploy
|
|
173
|
+
lambdaforge deploy --env staging
|
|
174
|
+
lambdaforge deploy --env prod
|
|
175
|
+
```
|
|
176
|
+
|
|
177
|
+
### Actualizar un proyecto existente
|
|
178
|
+
|
|
179
|
+
¿Ya tienes una Lambda pero quieres aplicar las mejores prácticas de LambdaForge?
|
|
180
|
+
|
|
181
|
+
```bash
|
|
182
|
+
cd my-existing-lambda
|
|
183
|
+
lambdaforge upgrade
|
|
184
|
+
|
|
185
|
+
# Detecta: Python 3.11, sin observabilidad, sin pruebas
|
|
186
|
+
# Añade: aws-lambda-powertools, pytest+moto, CI/CD
|
|
187
|
+
# Actualiza: Python 3.12, ARM64, tags Well-Architected
|
|
188
|
+
# Preserva: Tu lógica de negocio
|
|
189
|
+
```
|
|
190
|
+
|
|
191
|
+
## Plantillas
|
|
192
|
+
|
|
193
|
+
| Plantilla | Trigger | Caso de Uso | Estado |
|
|
194
|
+
|-----------|---------|-------------|--------|
|
|
195
|
+
| `python-api` | API Gateway | APIs REST/HTTP | ✅ Estable |
|
|
196
|
+
| `python-cron` | EventBridge Schedule | Tareas programadas | ✅ Estable |
|
|
197
|
+
| `python-queue` | SQS | Workers asíncronos | ✅ Estable |
|
|
198
|
+
| `python-stream` | Kinesis | Analítica en tiempo real | ✅ Estable |
|
|
199
|
+
| `python-s3` | S3 Events | Procesamiento de archivos | ✅ Estable |
|
|
200
|
+
| `typescript-api` | API Gateway | Lambdas Node.js | 🔜 Roadmap |
|
|
201
|
+
| `go-stream` | Kinesis | Alto rendimiento | 🔜 Roadmap |
|
|
202
|
+
|
|
203
|
+
## Estructura del Proyecto
|
|
204
|
+
|
|
205
|
+
```
|
|
206
|
+
lambdaforge/
|
|
207
|
+
├── src/lambdaforge/
|
|
208
|
+
│ ├── __init__.py # Versión, metadatos
|
|
209
|
+
│ ├── cli.py # CLI basada en Click (modo interactivo + directo)
|
|
210
|
+
│ ├── templates.py # 5 definiciones de plantillas
|
|
211
|
+
│ ├── renderer.py # Wrapper de Cookiecutter
|
|
212
|
+
│ ├── bedrock_client.py # Wrapper de la API de Amazon Bedrock
|
|
213
|
+
│ ├── spec_generator.py # Generador de Kiro specs con IA
|
|
214
|
+
│ ├── upgrade.py # Modo actualización para Lambdas existentes
|
|
215
|
+
│ ├── status.py # Estado del proyecto y recursos
|
|
216
|
+
│ ├── logs.py # Visor de logs de CloudWatch
|
|
217
|
+
│ └── deploy.py # Wrapper de despliegue CDK (bootstrap/destroy)
|
|
218
|
+
├── templates/
|
|
219
|
+
│ ├── python-api/ # Plantilla REST API (Cookiecutter)
|
|
220
|
+
│ ├── python-cron/ # Plantilla tareas programadas
|
|
221
|
+
│ ├── python-queue/ # Plantilla cola SQS
|
|
222
|
+
│ ├── python-stream/ # Plantilla stream Kinesis
|
|
223
|
+
│ └── python-s3/ # Plantilla eventos S3
|
|
224
|
+
│ └── {{cookiecutter.project_slug}}/
|
|
225
|
+
│ ├── src/ # Código Lambda + powertools
|
|
226
|
+
│ ├── tests/ # pytest + moto
|
|
227
|
+
│ ├── infrastructure/ # CDK JavaScript
|
|
228
|
+
│ ├── .github/workflows/ # CI/CD + Dependabot
|
|
229
|
+
│ └── ...
|
|
230
|
+
├── infrastructure/ # CDK para la propia API de LambdaForge
|
|
231
|
+
│ ├── app.py
|
|
232
|
+
│ ├── cdk.json
|
|
233
|
+
│ └── lib/lambdaforge_stack.py
|
|
234
|
+
├── tests/ # Pruebas unitarias de LambdaForge
|
|
235
|
+
│ ├── conftest.py
|
|
236
|
+
│ ├── test_cli.py
|
|
237
|
+
│ ├── test_templates.py
|
|
238
|
+
│ ├── test_renderer.py
|
|
239
|
+
│ ├── test_bedrock_client.py
|
|
240
|
+
│ └── test_spec_generator.py
|
|
241
|
+
├── .kiro/
|
|
242
|
+
│ ├── specs/ # Specs propias de LambdaForge
|
|
243
|
+
│ │ ├── 00-overview.md
|
|
244
|
+
│ │ ├── 01-architecture.md
|
|
245
|
+
│ │ ├── 02-acceptance-criteria.md
|
|
246
|
+
│ │ └── 03-implementation-plan.md
|
|
247
|
+
│ └── steering/ # Estándares de desarrollo
|
|
248
|
+
│ ├── code-standards.md
|
|
249
|
+
│ ├── testing.md
|
|
250
|
+
│ ├── security.md
|
|
251
|
+
│ ├── templates.md
|
|
252
|
+
│ └── aws-best-practices.md
|
|
253
|
+
├── .github/workflows/ # CI/CD para LambdaForge
|
|
254
|
+
│ ├── ci.yml
|
|
255
|
+
│ └── release.yml
|
|
256
|
+
├── pyproject.toml
|
|
257
|
+
├── LICENSE # Apache-2.0
|
|
258
|
+
├── CONTRIBUTING.md
|
|
259
|
+
├── CHANGELOG.md
|
|
260
|
+
└── README.md
|
|
261
|
+
```
|
|
262
|
+
|
|
263
|
+
## Cómo Funciona
|
|
264
|
+
|
|
265
|
+
### 1. Selección de Plantilla
|
|
266
|
+
LambdaForge incluye **plantillas Cookiecutter** preconfiguradas para cada patrón Lambda. Las plantillas se almacenan en `templates/` y se renderizan con los valores específicos del proyecto.
|
|
267
|
+
|
|
268
|
+
### 2. Kiro Specs Generadas por IA
|
|
269
|
+
Después de renderizar la plantilla, LambdaForge llama a **Amazon Bedrock** con el nombre del proyecto, descripción y plantilla elegida. Bedrock (usando **Claude Sonnet 4.5**) genera 4 archivos de specs en el formato de Kiro:
|
|
270
|
+
|
|
271
|
+
- `00-overview.md`: Descripción general del proyecto
|
|
272
|
+
- `01-architecture.md`: Arquitectura del sistema con servicios AWS
|
|
273
|
+
- `02-acceptance-criteria.md`: Criterios de aceptación verificables
|
|
274
|
+
- `03-implementation-plan.md`: Plan de implementación por fases
|
|
275
|
+
|
|
276
|
+
### 3. Mejores Prácticas Integradas
|
|
277
|
+
Cada proyecto generado incluye:
|
|
278
|
+
|
|
279
|
+
- **aws-lambda-powertools**: logging estructurado, trazas X-Ray, métricas CloudWatch
|
|
280
|
+
- **Pydantic**: validación de entrada
|
|
281
|
+
- **Arquitectura ARM64**: 20% de reducción de costos vs x86_64
|
|
282
|
+
- **Tags Well-Architected**: Project, Environment, CostCenter, ManagedBy
|
|
283
|
+
- **CloudWatch Dashboard**: Dashboard preconfigurado para cada stack
|
|
284
|
+
- **OIDC para CI/CD**: Sin claves AWS de larga duración en GitHub
|
|
285
|
+
|
|
286
|
+
### 4. Despliegue con un Solo Comando
|
|
287
|
+
`lambdaforge deploy` ejecuta `npx cdk deploy` con manejo de errores adecuado, reporte de progreso y rollback en caso de fallo.
|
|
288
|
+
|
|
289
|
+
## Estimación de Costos
|
|
290
|
+
|
|
291
|
+
LambdaForge en sí tiene costos mínimos:
|
|
292
|
+
|
|
293
|
+
| Recurso | Costo |
|
|
294
|
+
|---------|-------|
|
|
295
|
+
| Amazon Bedrock (Claude Sonnet 4.5) | ~$0.003 por generación de specs |
|
|
296
|
+
| Lambda (comando upgrade) | <$0.0001 por invocación |
|
|
297
|
+
| **Total por nuevo proyecto** | **~$0.003** |
|
|
298
|
+
|
|
299
|
+
Los proyectos que LambdaForge genera están diseñados para caber en el **AWS Free Tier**.
|
|
300
|
+
|
|
301
|
+
## Seguridad
|
|
302
|
+
|
|
303
|
+
- ✅ **Sin claves AWS de larga duración**: Usa OIDC para CI/CD
|
|
304
|
+
- ✅ **IAM de mínimo privilegio**: Cada Lambda obtiene un rol limitado
|
|
305
|
+
- ✅ **Validación con Pydantic**: Todas las entradas validadas
|
|
306
|
+
- ✅ **Logging estructurado con Powertools**: Sin PII en los logs
|
|
307
|
+
- ✅ **Secretos via AWS Secrets Manager**: Nunca en variables de entorno
|
|
308
|
+
|
|
309
|
+
## Pruebas
|
|
310
|
+
|
|
311
|
+
```bash
|
|
312
|
+
# Pruebas unitarias + integración (usa moto - sin llamadas reales a AWS)
|
|
313
|
+
pytest
|
|
314
|
+
|
|
315
|
+
# Con cobertura
|
|
316
|
+
pytest --cov=src --cov-report=html
|
|
317
|
+
|
|
318
|
+
# Verificación de tipos
|
|
319
|
+
mypy src/
|
|
320
|
+
|
|
321
|
+
# Linting
|
|
322
|
+
ruff check .
|
|
323
|
+
```
|
|
324
|
+
|
|
325
|
+
## Roadmap
|
|
326
|
+
|
|
327
|
+
- [ ] Publicar en PyPI
|
|
328
|
+
- [ ] Plantilla `typescript-api`
|
|
329
|
+
- [ ] Plantilla `go-stream`
|
|
330
|
+
- [ ] UI web interactiva para usuarios sin CLI
|
|
331
|
+
- [ ] Detección de desviación de specs (regenerar cuando el código cambia)
|
|
332
|
+
- [ ] Despliegue multi-región
|
|
333
|
+
- [ ] Estimación de costos antes del despliegue
|
|
334
|
+
|
|
335
|
+
## Contribuir
|
|
336
|
+
|
|
337
|
+
¡Las contribuciones son bienvenidas! Consulta [CONTRIBUTING.md](CONTRIBUTING.md) para las guías de contribución.
|
|
338
|
+
|
|
339
|
+
## Licencia
|
|
340
|
+
|
|
341
|
+
Apache-2.0 © 2026 LambdaForge Contributors
|
|
342
|
+
|
|
343
|
+
## Construido con Kiro
|
|
344
|
+
|
|
345
|
+
Este proyecto fue construido usando [Kiro](https://kiro.dev) — el IDE potenciado por IA que convierte specs en código desplegable. Todos los archivos `.kiro/specs/` de LambdaForge y de cada proyecto que genera están escritos en el formato estructurado de Kiro.
|
|
346
|
+
|
|
347
|
+
## Agradecimientos
|
|
348
|
+
|
|
349
|
+
- **Equipo de Kiro** por el flujo de desarrollo dirigido por specs
|
|
350
|
+
- **Equipo de AWS Lambda** por la plataforma serverless
|
|
351
|
+
- **Anthropic** por Claude (via Amazon Bedrock)
|
|
352
|
+
- **Jeff Barr, Darko Mesaroš, Ana Cunha** — los jueces de HACKATHONKIRO cuya experiencia en serverless y experiencia de desarrollador inspiraron esta herramienta
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
templates/python-api/cookiecutter.json,sha256=_LO08VKSGcrgVYY5nBM6_HJAvU5q_WpGATlE_UgP6zQ,390
|
|
2
|
+
templates/python-api/{{cookiecutter.project_slug}}/.gitignore,sha256=Bqem75I6sP7nqmQEwxB5bIYwpwnqdFHVy2AnkT_ZRFI,537
|
|
3
|
+
templates/python-api/{{cookiecutter.project_slug}}/Dockerfile,sha256=rX0yL0VsXmCJtOg-V03JcUkRj_eKf39v630S4ImQRm0,292
|
|
4
|
+
templates/python-api/{{cookiecutter.project_slug}}/README.md,sha256=fKdu6VBF-08bFdsDLcWahb7Cjn6NbBOymBmdSQPyhuU,3215
|
|
5
|
+
templates/python-api/{{cookiecutter.project_slug}}/pyproject.toml,sha256=RgpfBUv3ZBdBD7YyIZDHFWU74PiF588-KonjNlcGuSs,1456
|
|
6
|
+
templates/python-api/{{cookiecutter.project_slug}}/requirements-dev.txt,sha256=Uwhg2y5EAsxnGJSjIt3jRxMIU8xDbvDGS7UsRo1u-lE,149
|
|
7
|
+
templates/python-api/{{cookiecutter.project_slug}}/requirements.txt,sha256=FORjiptBz_x4wFjg5sGHMAFEol_i52CCGtRZhLER8Y4,82
|
|
8
|
+
templates/python-api/{{cookiecutter.project_slug}}/.github/workflows/dependabot.yml,sha256=k0wfXXlD6AUceYhKJo8daOwyPernNH8nETFs0xqfGzw,468
|
|
9
|
+
templates/python-api/{{cookiecutter.project_slug}}/.github/workflows/deploy.yml,sha256=PbVb70kBLxnRryDO7fhqPriznpoetNSQXt4hBKgv8Jo,2043
|
|
10
|
+
templates/python-api/{{cookiecutter.project_slug}}/infrastructure/app.js,sha256=lAQlPDyst0dF6HTiO9CVLhQx_iscE9XXcptVkOGqBPs,895
|
|
11
|
+
templates/python-api/{{cookiecutter.project_slug}}/infrastructure/cdk.json,sha256=H-_CEcJvTS9c0jytItPm52MEOgLhY65lC8PkNSOcVcQ,515
|
|
12
|
+
templates/python-api/{{cookiecutter.project_slug}}/infrastructure/package.json,sha256=hEwXWK_QZVvo_mR3_YCHDRkCbGJ1XMCJ13kfkS-BiS8,445
|
|
13
|
+
templates/python-api/{{cookiecutter.project_slug}}/infrastructure/lib/stack.js,sha256=MFu6cI72FVid9c7Xv8V3TemqsnE9El2DwkJbKCX4TbA,5947
|
|
14
|
+
templates/python-api/{{cookiecutter.project_slug}}/src/handler.py,sha256=FxQ1eKhpqhXvaetLPqBx2ar_R4WSjCmCuYltEqr_Btk,2640
|
|
15
|
+
templates/python-api/{{cookiecutter.project_slug}}/src/utils/logger.py,sha256=Zt84f1KdpKj2T-6sNd6OUyvwxzn-gtgQCnTRf1TW43g,949
|
|
16
|
+
templates/python-api/{{cookiecutter.project_slug}}/tests/conftest.py,sha256=7pE-EDb3VGXo27jr9wfNuJnONn9aUocCR1nQy7w0FgE,617
|
|
17
|
+
templates/python-api/{{cookiecutter.project_slug}}/tests/test_handler.py,sha256=lPnmksIXNHtuhhN5xWvH9XzyhHGRqIsXkwXA0idyq_4,1870
|
|
18
|
+
templates/python-cron/cookiecutter.json,sha256=8H5WcDj6kuTUEI0BzEm8PMUEuflq7indyi8x4cITUx4,442
|
|
19
|
+
templates/python-cron/{{cookiecutter.project_slug}}/.gitignore,sha256=Bqem75I6sP7nqmQEwxB5bIYwpwnqdFHVy2AnkT_ZRFI,537
|
|
20
|
+
templates/python-cron/{{cookiecutter.project_slug}}/Dockerfile,sha256=rX0yL0VsXmCJtOg-V03JcUkRj_eKf39v630S4ImQRm0,292
|
|
21
|
+
templates/python-cron/{{cookiecutter.project_slug}}/pyproject.toml,sha256=rK1pVnq4afggxB9s8mW1kHCh0xhrUp8Rx6yPeXImSQk,1226
|
|
22
|
+
templates/python-cron/{{cookiecutter.project_slug}}/requirements.txt,sha256=LWsd1woiKXQ8APtJ0FGTbzBhKwhxZIEQ4zb6MU8ZMAA,58
|
|
23
|
+
templates/python-cron/{{cookiecutter.project_slug}}/infrastructure/app.js,sha256=qUAk_eQ859zJo85cIWAdEGCQhObbFAfMzuRhr5exNog,860
|
|
24
|
+
templates/python-cron/{{cookiecutter.project_slug}}/infrastructure/cdk.json,sha256=ulJnAkIBcqhE0h7KW2ZbNFrgaKDoiZ5gKQkGLAwSu5w,27
|
|
25
|
+
templates/python-cron/{{cookiecutter.project_slug}}/infrastructure/package.json,sha256=hEwXWK_QZVvo_mR3_YCHDRkCbGJ1XMCJ13kfkS-BiS8,445
|
|
26
|
+
templates/python-cron/{{cookiecutter.project_slug}}/infrastructure/lib/stack.js,sha256=m-SWojp4iHYveVkMFR5hWqmxu5cbAziY3TMEWywlasU,2127
|
|
27
|
+
templates/python-cron/{{cookiecutter.project_slug}}/src/handler.py,sha256=P8MlP_e7meE3mNQH1HtiK9tsMYMPqMUiiD3ShOxaiBE,1589
|
|
28
|
+
templates/python-cron/{{cookiecutter.project_slug}}/tests/conftest.py,sha256=7pE-EDb3VGXo27jr9wfNuJnONn9aUocCR1nQy7w0FgE,617
|
|
29
|
+
templates/python-cron/{{cookiecutter.project_slug}}/tests/test_handler.py,sha256=nBb72OFS9kaV84ZIw6AL1MfgWSct_JhgoTsoBzP-OmQ,1408
|
|
30
|
+
templates/python-queue/cookiecutter.json,sha256=twGMMPM3A3_t3RF4jF-W_XVgbPuaq_51-FptUSY_AZ8,418
|
|
31
|
+
templates/python-queue/{{cookiecutter.project_slug}}/.gitignore,sha256=Bqem75I6sP7nqmQEwxB5bIYwpwnqdFHVy2AnkT_ZRFI,537
|
|
32
|
+
templates/python-queue/{{cookiecutter.project_slug}}/Dockerfile,sha256=rX0yL0VsXmCJtOg-V03JcUkRj_eKf39v630S4ImQRm0,292
|
|
33
|
+
templates/python-queue/{{cookiecutter.project_slug}}/pyproject.toml,sha256=sVgVv2UVNnyE86ll2FXnCrTZmsouKXHqFdMfEl8bqpY,1225
|
|
34
|
+
templates/python-queue/{{cookiecutter.project_slug}}/requirements.txt,sha256=LWsd1woiKXQ8APtJ0FGTbzBhKwhxZIEQ4zb6MU8ZMAA,58
|
|
35
|
+
templates/python-queue/{{cookiecutter.project_slug}}/infrastructure/app.js,sha256=qUAk_eQ859zJo85cIWAdEGCQhObbFAfMzuRhr5exNog,860
|
|
36
|
+
templates/python-queue/{{cookiecutter.project_slug}}/infrastructure/cdk.json,sha256=ulJnAkIBcqhE0h7KW2ZbNFrgaKDoiZ5gKQkGLAwSu5w,27
|
|
37
|
+
templates/python-queue/{{cookiecutter.project_slug}}/infrastructure/package.json,sha256=hEwXWK_QZVvo_mR3_YCHDRkCbGJ1XMCJ13kfkS-BiS8,445
|
|
38
|
+
templates/python-queue/{{cookiecutter.project_slug}}/infrastructure/lib/stack.js,sha256=Wuq0GXLJdeJwtv6F-S2tUzFHMmySd3JY3upRe-1sQd8,2938
|
|
39
|
+
templates/python-queue/{{cookiecutter.project_slug}}/src/handler.py,sha256=YlSa9e_ZFV8pj9nAoKt0d_87uzZQJuUop-rPRckFMh8,1809
|
|
40
|
+
templates/python-queue/{{cookiecutter.project_slug}}/tests/conftest.py,sha256=7pE-EDb3VGXo27jr9wfNuJnONn9aUocCR1nQy7w0FgE,617
|
|
41
|
+
templates/python-queue/{{cookiecutter.project_slug}}/tests/test_handler.py,sha256=G-03K2smNHmci3sA_qMOGiAM0imYm-J2lcwlmmDQJIU,1830
|
|
42
|
+
templates/python-s3/cookiecutter.json,sha256=mlfSjynWAIoQE6Jc4zGTxqUWp5CJGI91jspgzMG4WSs,425
|
|
43
|
+
templates/python-s3/{{cookiecutter.project_slug}}/.gitignore,sha256=Bqem75I6sP7nqmQEwxB5bIYwpwnqdFHVy2AnkT_ZRFI,537
|
|
44
|
+
templates/python-s3/{{cookiecutter.project_slug}}/Dockerfile,sha256=rX0yL0VsXmCJtOg-V03JcUkRj_eKf39v630S4ImQRm0,292
|
|
45
|
+
templates/python-s3/{{cookiecutter.project_slug}}/pyproject.toml,sha256=PlhQLMDNyNzJc1CMM1oub77WwWpL1Me3r8KJk0mdpP0,1233
|
|
46
|
+
templates/python-s3/{{cookiecutter.project_slug}}/requirements.txt,sha256=LWsd1woiKXQ8APtJ0FGTbzBhKwhxZIEQ4zb6MU8ZMAA,58
|
|
47
|
+
templates/python-s3/{{cookiecutter.project_slug}}/infrastructure/app.js,sha256=qUAk_eQ859zJo85cIWAdEGCQhObbFAfMzuRhr5exNog,860
|
|
48
|
+
templates/python-s3/{{cookiecutter.project_slug}}/infrastructure/cdk.json,sha256=ulJnAkIBcqhE0h7KW2ZbNFrgaKDoiZ5gKQkGLAwSu5w,27
|
|
49
|
+
templates/python-s3/{{cookiecutter.project_slug}}/infrastructure/package.json,sha256=hEwXWK_QZVvo_mR3_YCHDRkCbGJ1XMCJ13kfkS-BiS8,445
|
|
50
|
+
templates/python-s3/{{cookiecutter.project_slug}}/infrastructure/lib/stack.js,sha256=PjpM8zvzPo6vLkeA1bUp0Zc0uHEt0Gqo9z6aHV8L2PM,3302
|
|
51
|
+
templates/python-s3/{{cookiecutter.project_slug}}/src/handler.py,sha256=GbWQcY8DgRptlCc8y9YCG0U5o1ZHy1EjX5JM2zgCMdk,2527
|
|
52
|
+
templates/python-s3/{{cookiecutter.project_slug}}/tests/conftest.py,sha256=7pE-EDb3VGXo27jr9wfNuJnONn9aUocCR1nQy7w0FgE,617
|
|
53
|
+
templates/python-s3/{{cookiecutter.project_slug}}/tests/test_handler.py,sha256=nJZ4cxgorOszRF5aqMIqqlyzFEA4Xde_F5n2Jy3pWq4,2119
|
|
54
|
+
templates/python-stream/cookiecutter.json,sha256=aC-C9XsriIVH-4yGq8xpcjZxkUDzkr-_lQK03A80q5A,406
|
|
55
|
+
templates/python-stream/{{cookiecutter.project_slug}}/.gitignore,sha256=Bqem75I6sP7nqmQEwxB5bIYwpwnqdFHVy2AnkT_ZRFI,537
|
|
56
|
+
templates/python-stream/{{cookiecutter.project_slug}}/Dockerfile,sha256=rX0yL0VsXmCJtOg-V03JcUkRj_eKf39v630S4ImQRm0,292
|
|
57
|
+
templates/python-stream/{{cookiecutter.project_slug}}/pyproject.toml,sha256=talJjuju3OwnMi72GaMbm03soEN4XMREbB_wiDZaD7M,1234
|
|
58
|
+
templates/python-stream/{{cookiecutter.project_slug}}/requirements.txt,sha256=LWsd1woiKXQ8APtJ0FGTbzBhKwhxZIEQ4zb6MU8ZMAA,58
|
|
59
|
+
templates/python-stream/{{cookiecutter.project_slug}}/infrastructure/app.js,sha256=qUAk_eQ859zJo85cIWAdEGCQhObbFAfMzuRhr5exNog,860
|
|
60
|
+
templates/python-stream/{{cookiecutter.project_slug}}/infrastructure/cdk.json,sha256=ulJnAkIBcqhE0h7KW2ZbNFrgaKDoiZ5gKQkGLAwSu5w,27
|
|
61
|
+
templates/python-stream/{{cookiecutter.project_slug}}/infrastructure/package.json,sha256=hEwXWK_QZVvo_mR3_YCHDRkCbGJ1XMCJ13kfkS-BiS8,445
|
|
62
|
+
templates/python-stream/{{cookiecutter.project_slug}}/infrastructure/lib/stack.js,sha256=6EpaeQhCaGCgMCfHNXSqFuOUXgJG7Nhv-OTYIw05c00,3099
|
|
63
|
+
templates/python-stream/{{cookiecutter.project_slug}}/src/handler.py,sha256=AQCnUatJqaU3N4R7UXJD7_AMTwbUKvSILYSOrJ9Vjcc,1983
|
|
64
|
+
templates/python-stream/{{cookiecutter.project_slug}}/tests/conftest.py,sha256=7pE-EDb3VGXo27jr9wfNuJnONn9aUocCR1nQy7w0FgE,617
|
|
65
|
+
templates/python-stream/{{cookiecutter.project_slug}}/tests/test_handler.py,sha256=5shbqtI_UTJV5FHgHGZamZSyPfeJwp47Ps6_wIH58Uo,2124
|
|
66
|
+
lambdaforge/__init__.py,sha256=qy5wRf_JrblILtIcNg2P_tAgiYxXbHo4G_B0R_iy3KA,348
|
|
67
|
+
lambdaforge/bedrock_client.py,sha256=O8Lz_zOmitk0sbe-vv2bIG_3t2_59FW1kRTHLMTTzNQ,3195
|
|
68
|
+
lambdaforge/cli.py,sha256=e9e6yO7EODVzcxEFuEn1H0BvVdbMItnPxrxOCezC_Ew,12594
|
|
69
|
+
lambdaforge/deploy.py,sha256=4NEfEVApxmPkvvKDFigfnffVvhgjMQZH8SRcQr6hVqY,9943
|
|
70
|
+
lambdaforge/logs.py,sha256=pXeNEJigWViiutr-O8hzTsFmJw8fyIu_Vh0Qvwwfy2A,5533
|
|
71
|
+
lambdaforge/renderer.py,sha256=D8d1Qw_yWm_Ij1D4Oc8YzSqAv218VPofdqXBQC_ednQ,2414
|
|
72
|
+
lambdaforge/spec_generator.py,sha256=O0AvzaYGmdNDTXyBAHKfOQkm25Bi3qensDS7ocjL4Ck,5844
|
|
73
|
+
lambdaforge/status.py,sha256=jlb2V_DABabqvO0Bf6cBSGdZhZpqYcUivH2c-blm4xU,3337
|
|
74
|
+
lambdaforge/templates.py,sha256=BstguctQ5heEEN0BP0yDjO59wmcD4vwEDdLcRxAmLgc,3014
|
|
75
|
+
lambdaforge/upgrade.py,sha256=ufa_C7Pde6lJ_JQcG5j0LLRJuyYxb-evXH2JIef3r9Q,7902
|
|
76
|
+
lambda_forge_cli_aws-1.0.0.dist-info/METADATA,sha256=9M8uZrk4mWKFmh7IRTYUKQ9OzsiXhNGCQgncT4SBxQE,13986
|
|
77
|
+
lambda_forge_cli_aws-1.0.0.dist-info/WHEEL,sha256=lCkmxWfQsSc9CfIClYeavTdQeEX2toPqufh9gI35EQA,87
|
|
78
|
+
lambda_forge_cli_aws-1.0.0.dist-info/entry_points.txt,sha256=QJz2Gkh7GMnqAxgchX9iz2e5CzazNzRsTd88mtUjHhc,52
|
|
79
|
+
lambda_forge_cli_aws-1.0.0.dist-info/licenses/LICENSE,sha256=zc3S2qX66kg7kcIWWfswsGdgls7Hqam-pZ8MF94Ee70,10722
|
|
80
|
+
lambda_forge_cli_aws-1.0.0.dist-info/RECORD,,
|
|
@@ -0,0 +1,189 @@
|
|
|
1
|
+
Apache License
|
|
2
|
+
Version 2.0, January 2004
|
|
3
|
+
http://www.apache.org/licenses/
|
|
4
|
+
|
|
5
|
+
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
|
6
|
+
|
|
7
|
+
1. Definitions.
|
|
8
|
+
|
|
9
|
+
"License" shall mean the terms and conditions for use, reproduction,
|
|
10
|
+
and distribution as defined by Sections 1 through 9 of this document.
|
|
11
|
+
|
|
12
|
+
"Licensor" shall mean the copyright owner or entity authorized by
|
|
13
|
+
the copyright owner that is granting the License.
|
|
14
|
+
|
|
15
|
+
"Legal Entity" shall mean the union of the acting entity and all
|
|
16
|
+
other entities that control, are controlled by, or are under common
|
|
17
|
+
control with that entity. For the purposes of this definition,
|
|
18
|
+
"control" means (i) the power, direct or indirect, to cause the
|
|
19
|
+
direction or management of such entity, whether by contract or
|
|
20
|
+
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
|
21
|
+
outstanding shares, or (iii) beneficial ownership of such entity.
|
|
22
|
+
|
|
23
|
+
"You" (or "Your") shall mean an individual or Legal Entity
|
|
24
|
+
exercising permissions granted by this License.
|
|
25
|
+
|
|
26
|
+
"Source" form shall mean the preferred form for making modifications,
|
|
27
|
+
including but not limited to software source code, documentation
|
|
28
|
+
source, and configuration files.
|
|
29
|
+
|
|
30
|
+
"Object" form shall mean any form resulting from mechanical
|
|
31
|
+
transformation or translation of a Source form, including but
|
|
32
|
+
not limited to compiled object code, generated documentation,
|
|
33
|
+
and conversions to other media types.
|
|
34
|
+
|
|
35
|
+
"Work" shall mean the work of authorship, whether in Source or
|
|
36
|
+
Object form, made available under the License, as indicated by a
|
|
37
|
+
copyright notice that is included in or attached to the work.
|
|
38
|
+
|
|
39
|
+
"Derivative Works" shall mean any work, whether in Source or Object
|
|
40
|
+
form, that is based on (or derived from) the Work and for which the
|
|
41
|
+
editorial revisions, annotations, elaborations, or other modifications
|
|
42
|
+
represent, as a whole, an original work of authorship. For the purposes
|
|
43
|
+
of this License, Derivative Works shall not include works that remain
|
|
44
|
+
separable from, or merely link (or bind by name) to the interfaces of,
|
|
45
|
+
the Work and Derivative Works thereof.
|
|
46
|
+
|
|
47
|
+
"Contribution" shall mean any work of authorship, including
|
|
48
|
+
the original version of the Work and any modifications or additions
|
|
49
|
+
to that Work or Derivative Works thereof, that is intentionally
|
|
50
|
+
submitted to the Licensor for inclusion in the Work by the copyright owner
|
|
51
|
+
or by an individual or Legal Entity authorized to submit on behalf of
|
|
52
|
+
the copyright owner. For the purposes of this definition, "submitted"
|
|
53
|
+
means any form of electronic, verbal, or written communication sent
|
|
54
|
+
to the Licensor or its representatives, including but not limited to
|
|
55
|
+
communication on electronic mailing lists, source code control systems,
|
|
56
|
+
and issue tracking systems that are managed by, or on behalf of, the
|
|
57
|
+
Licensor for the purpose of discussing and improving the Work, but
|
|
58
|
+
excluding communication that is conspicuously marked or otherwise
|
|
59
|
+
designated in writing by the copyright owner as "Not a Contribution."
|
|
60
|
+
|
|
61
|
+
"Contributor" shall mean Licensor and any individual or Legal Entity
|
|
62
|
+
on behalf of whom a Contribution has been received by the Licensor and
|
|
63
|
+
subsequently incorporated within the Work.
|
|
64
|
+
|
|
65
|
+
2. Grant of Copyright License. Subject to the terms and conditions of
|
|
66
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
67
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
68
|
+
copyright license to reproduce, prepare Derivative Works of,
|
|
69
|
+
publicly display, publicly perform, sublicense, and distribute the
|
|
70
|
+
Work and such Derivative Works in Source or Object form.
|
|
71
|
+
|
|
72
|
+
3. Grant of Patent License. Subject to the terms and conditions of
|
|
73
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
74
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
75
|
+
(except as stated in this section) patent license to make, have made,
|
|
76
|
+
use, offer to sell, sell, import, and otherwise transfer the Work,
|
|
77
|
+
where such license applies only to those patent claims licensable
|
|
78
|
+
by such Contributor that are necessarily infringed by their
|
|
79
|
+
Contribution(s) alone or by combination of their Contribution(s)
|
|
80
|
+
with the Work to which such Contribution(s) was submitted. If You
|
|
81
|
+
institute patent litigation against any entity (including a
|
|
82
|
+
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
|
83
|
+
or a Contribution incorporated within the Work constitutes direct
|
|
84
|
+
or contributory patent infringement, then any patent licenses
|
|
85
|
+
granted to You under this License for that Work shall terminate
|
|
86
|
+
as of the date such litigation is filed.
|
|
87
|
+
|
|
88
|
+
4. Redistribution. You may reproduce and distribute copies of the
|
|
89
|
+
Work or Derivative Works thereof in any medium, with or without
|
|
90
|
+
modifications, and in Source or Object form, provided that You
|
|
91
|
+
meet the following conditions:
|
|
92
|
+
|
|
93
|
+
(a) You must give any other recipients of the Work or
|
|
94
|
+
Derivative Works a copy of this License; and
|
|
95
|
+
|
|
96
|
+
(b) You must cause any modified files to carry prominent notices
|
|
97
|
+
stating that You changed the files; and
|
|
98
|
+
|
|
99
|
+
(c) You must retain, in the Source form of any Derivative Works
|
|
100
|
+
that You distribute, all copyright, patent, trademark, and
|
|
101
|
+
attribution notices from the Source form of the Work,
|
|
102
|
+
excluding those notices that do not pertain to any part of
|
|
103
|
+
the Derivative Works; and
|
|
104
|
+
|
|
105
|
+
(d) If the Work includes a "NOTICE" text file as part of its
|
|
106
|
+
distribution, then any Derivative Works that You distribute must
|
|
107
|
+
include a readable copy of the attribution notices contained
|
|
108
|
+
within such NOTICE file, excluding any notices that do not
|
|
109
|
+
pertain to any part of the Derivative Works, in at least one
|
|
110
|
+
of the following places: within a NOTICE text file distributed
|
|
111
|
+
as part of the Derivative Works; within the Source form or
|
|
112
|
+
documentation, if provided along with the Derivative Works; or,
|
|
113
|
+
within a display generated by the Derivative Works, if and
|
|
114
|
+
wherever such third-party notices normally appear. The contents
|
|
115
|
+
of the NOTICE file are for informational purposes only and
|
|
116
|
+
do not modify the License. You may add Your own attribution
|
|
117
|
+
notices within Derivative Works that You distribute, alongside
|
|
118
|
+
or as an addendum to the NOTICE text from the Work, provided
|
|
119
|
+
that such additional attribution notices cannot be construed
|
|
120
|
+
as modifying the License.
|
|
121
|
+
|
|
122
|
+
You may add Your own copyright statement to Your modifications and
|
|
123
|
+
may provide additional or different license terms and conditions
|
|
124
|
+
for use, reproduction, or distribution of Your modifications, or
|
|
125
|
+
for any such Derivative Works as a whole, provided Your use,
|
|
126
|
+
reproduction, and distribution of the Work otherwise complies with
|
|
127
|
+
the conditions stated in this License.
|
|
128
|
+
|
|
129
|
+
5. Submission of Contributions. Unless You explicitly state otherwise,
|
|
130
|
+
any Contribution intentionally submitted for inclusion in the Work
|
|
131
|
+
by You to the Licensor shall be under the terms and conditions of
|
|
132
|
+
this License, without any additional terms or conditions.
|
|
133
|
+
Notwithstanding the above, nothing herein shall supersede or modify
|
|
134
|
+
the terms of any separate license agreement you may have executed
|
|
135
|
+
with Licensor regarding such Contributions.
|
|
136
|
+
|
|
137
|
+
6. Trademarks. This License does not grant permission to use the trade
|
|
138
|
+
names, trademarks, service marks, or product names of the Licensor,
|
|
139
|
+
except as required for reasonable and customary use in describing the
|
|
140
|
+
origin of the Work and reproducing the content of the NOTICE file.
|
|
141
|
+
|
|
142
|
+
7. Disclaimer of Warranty. Unless required by applicable law or
|
|
143
|
+
agreed to in writing, Licensor provides the Work (and each
|
|
144
|
+
Contributor provides its Contributions) on an "AS IS" BASIS,
|
|
145
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
|
146
|
+
implied, including, without limitation, any warranties or conditions
|
|
147
|
+
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
|
148
|
+
PARTICULAR PURPOSE. You are solely responsible for determining the
|
|
149
|
+
appropriateness of using or redistributing the Work and assume any
|
|
150
|
+
risks associated with Your exercise of permissions under this License.
|
|
151
|
+
|
|
152
|
+
8. Limitation of Liability. In no event and under no legal theory,
|
|
153
|
+
whether in tort (including negligence), contract, or otherwise,
|
|
154
|
+
unless required by applicable law (such as deliberate and grossly
|
|
155
|
+
negligent acts) or agreed to in writing, shall any Contributor be
|
|
156
|
+
liable to You for damages, including any direct, indirect, special,
|
|
157
|
+
incidental, or consequential damages of any character arising as a
|
|
158
|
+
result of this License or out of the use or inability to use the
|
|
159
|
+
Work (including but not limited to damages for loss of goodwill,
|
|
160
|
+
work stoppage, computer failure or malfunction, or any and all
|
|
161
|
+
other commercial damages or losses), even if such Contributor
|
|
162
|
+
has been advised of the possibility of such damages.
|
|
163
|
+
|
|
164
|
+
9. Accepting Warranty or Additional Liability. While redistributing
|
|
165
|
+
the Work or Derivative Works thereof, You may choose to offer,
|
|
166
|
+
and charge a fee for, acceptance of support, warranty, indemnity,
|
|
167
|
+
or other liability obligations and/or rights consistent with this
|
|
168
|
+
License. However, in accepting such obligations, You may act only
|
|
169
|
+
on Your own behalf and on Your sole responsibility, not on behalf
|
|
170
|
+
of any other Contributor, and only if You agree to indemnify,
|
|
171
|
+
defend, and hold each Contributor harmless for any liability
|
|
172
|
+
incurred by, or claims asserted against, such Contributor by reason
|
|
173
|
+
of your accepting any such warranty or additional liability.
|
|
174
|
+
|
|
175
|
+
END OF TERMS AND CONDITIONS
|
|
176
|
+
|
|
177
|
+
Copyright 2026 LambdaForge Contributors
|
|
178
|
+
|
|
179
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
|
180
|
+
you may not use this file except in compliance with the License.
|
|
181
|
+
You may obtain a copy of the License at
|
|
182
|
+
|
|
183
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
|
184
|
+
|
|
185
|
+
Unless required by applicable law or agreed to in writing, software
|
|
186
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
|
187
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
188
|
+
See the License for the specific language governing permissions and
|
|
189
|
+
limitations under the License.
|
lambdaforge/__init__.py
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
"""LambdaForge — Zero to Lambda production-ready in 60 seconds.
|
|
2
|
+
|
|
3
|
+
A developer productivity tool that scaffolds AWS Lambda projects with
|
|
4
|
+
best practices baked in: structure, tests, IaC (CDK), observability,
|
|
5
|
+
and Kiro specs auto-generated. Built for HACKATHONKIRO.
|
|
6
|
+
"""
|
|
7
|
+
|
|
8
|
+
__version__ = "1.0.0"
|
|
9
|
+
__author__ = "LambdaForge Team"
|
|
10
|
+
__license__ = "Apache-2.0"
|