Meteo Blog
// Architecture
Resúmenes meteorológicos impulsados por IA para España — totalmente serverless en AWS
1 — Trigger
⏰
EventBridge Scheduler
cron: 5x/día (hora España)
0h, 6h, 10h, 14h, 18h
invoca
2 — Ingesta + Inferencia
🌦️
AEMET OpenData API
17 CC.AA. · temp, lluvia, cielo
Rate-limited con reintentos
🧠
AWS Lambda
Python 3.12 · Docker
Fetch → Prompt → LLM → S3
✨
Amazon Bedrock
Amazon Nova Micro
Resumen meteorológico
en lenguaje natural
weather.json + invalidación caché
3 — Storage + Delivery
🗃
Amazon S3
Frontend estático +
weather.json (datos)
🌐
CloudFront CDN
HTTPS · OAC · TTL 5min datos
TTL 1h assets estáticos
📱
Frontend
HTML + Vanilla JS
Tailwind CSS · Sin frameworks
4 — RAG Chatbot (Nuwe)
📄
Repo (código + IaC)
Chunking semántico
Script local offline
📊
Titan Embed v2 + FAISS
256 dims · cosine similarity
Índice en S3
💬
API Gateway + Lambda
RAG + weather.json
Memoria en S3 · Nova Micro
5 — Infraestructura & CI/CD
🛠
Terraform
IaC · S3 remote state
Lambda, IAM, ECR, S3,
CloudFront, Route 53, ACM
📦
Docker + ECR
Container image
Lifecycle: últimas 10
▶
GitHub Actions
Push to main → deploy
OIDC auth (sin secrets AWS)
Python
Terraform
Docker
AWS Lambda
Bedrock
S3
CloudFront
Route 53
AEMET API
GitHub Actions