Dux-Courses Evaluaciones
DOCUMENTATIONCOURSESROADMAPRANKINGBLOGPLAYGROUND
LoginSign Up
Aurum-Courses

Aurum Courses is an advanced learning and evaluation platform designed to accelerate your tech career. We provide an immersive environment filled with challenges, technical documentation, and verifyable certificates for frontend, backend, and fullstack technologies.

Platform Links

  • Interactive Courses
  • Technical Documentation
  • Tech Blog & Articles
  • Mi Perfil y Progreso

About the Project

  • About the Project
  • Contact & Support

Legal & Compliance

  • Privacy Policy
  • Terms of Service
  • Cookies Management
© 2026 Aurum-Courses. All rights reserved. Made with passion for the developer ecosystem.

Desarrollado por Aurumdux

Docs/AWS/Lambda: Serverless Computing
Intermedioaws

Lambda: Serverless Computing

Ejecuta codigo sin gestionar servidores. Aprende a crear funciones Lambda y configurar triggers.

Que es Lambda

AWS Lambda permite ejecutar codigo sin aprovisionar servidores. Solo pagas por el tiempo de computo consumido (granularidad de milisegundos). Soporta Python, Node.js, Java, Go, .NET y mas.

Crear una funcion Lambda

Una funcion Lambda recibe un evento y un contexto, procesa la logica y retorna una respuesta.
python
1# handler.py
2import json
3
4def lambda_handler(event, context):
5    nombre = event.get("queryStringParameters", {}).get("nombre", "Mundo")
6
7    return {
8        "statusCode": 200,
9        "headers": {"Content-Type": "application/json"},
10        "body": json.dumps({
11            "mensaje": f"Hola, {nombre}!",
12            "request_id": context.aws_request_id
13        })
14    }

Desplegar con CLI

Puedes crear y actualizar funciones Lambda desde la CLI.
bash
1# Crear funcion
2aws lambda create-function \
3  --function-name MiAPI \
4  --runtime python3.12 \
5  --handler handler.lambda_handler \
6  --zip-file fileb://funcion.zip \
7  --role arn:aws:iam::123456789012:role/lambda-role
8
9# Invocar
10aws lambda invoke \
11  --function-name MiAPI \
12  --payload '{"queryStringParameters": {"nombre": "Ana"}}' \
13  respuesta.json
← AnteriorIAM: Gestion de IdentidadSiguiente →RDS: Bases de Datos Gestionadas