12 — Infra, CI/CD e Stacks Especialistas
aws · hosting · kubernetes · sre · cicd · devsecops-infra · observability · 7 agentes Grupo D
ETAPA 12/17
grupo D · infra & ops
GIT PUSH
trigger do pipeline
feat branch ou main
GitHub Actions → run
workflow CI definido
em .github/workflows/
BUILD
cicd-agent
docker build
lint + type-check
deps audit
cache layers
TEST
suite completa
unit tests
integration tests
coverage ≥ 80%
falha → bloqueia
SEC SCAN
devsecops-infra
Trivy (imagem)
Snyk (deps)
SAST (código)
secrets scan
DEPLOY
hosting-agent
staging → smoke
prod → rolling
canary / blue-green
rollback auto
OBSERVABILITY
observability-agent
métricas (Prometheus)
logs (Loki/ELK)
alertas (PagerDuty)
dashboards Grafana
GRUPO D — INFRA & OPS · 7 agentes especializados
aws-agent
cloud AWS
EC2, RDS, S3, Lambda,
IAM, VPC, CloudWatch,
custo e right-sizing
hosting-agent
deploy & hosting
Vercel, Fly.io, Railway,
ECS, App Runner,
rolling · canary deploy
kubernetes-agent
orquestração K8s
pods, deployments, HPA,
ingress, secrets, CRDs,
Helm charts, namespaces
sre-agent
confiabilidade
SLOs, SLAs, error budgets,
runbooks, incident response,
postmortems, on-call
cicd-agent
GitHub Actions
workflows YAML, matrixes,
environments, secrets, cache,
reusable workflows, OIDC
devsecops-infra
segurança de infra
Trivy, Snyk, Checkov,
IaC scan (Terraform),
policy as code (OPA)
observability-agent
monitoramento 360°
Prometheus + Grafana,
OpenTelemetry traces,
Loki logs, alertas SLO
INFRAESTRUTURA COMO CÓDIGO (IaC)
Terraform → provisiona AWS, GCP, Azure
Helm Charts → empacota apps K8s
Ansible → configuração de servidores bare-metal
Pulumi → IaC em TypeScript/Python para squads dev-heavy
Todo código de infra passa por code-review e scan (Checkov/OPA)
PRINCÍPIO: infra é código — versionada, testada, revisada
Módulos reutilizáveis por projeto. Estado remoto (S3+DynamoDB).
terraform plan em PR · terraform apply só em merge na main
AMBIENTES E ESTRATÉGIA DE DEPLOY
AMBIENTE TRIGGER ESTRATÉGIA AUTO-ROLLBACK
dev push branch recreate não
staging PR merge rolling sim (5min)
prod tag semver canary 10%→ sim (2min)
50%→100% error_rate>1%
Smoke tests automáticos após cada deploy (staging e prod)
Health checks: /health endpoint obrigatório em todo serviço
Canary fail → rollback automático em < 2 min · alerta PagerDuty
SRE — SLOs E ERROR BUDGET
SLO — Service Level Objective: meta de confiabilidade
ex: 99.9% uptime em rolling 30d = 43.8 min downtime/mês
Error Budget = 100% - SLO → quanto falhar é aceitável
Budget esgotado → freeze de features até recuperação
Alertas: warn @75% budget · critical @90% · freeze @100%
Postmortem obrigatório em incidentes P0 e P1 (blameless)
Runbook por serviço: steps de diagnóstico e recuperação
ETAPA 12
·
7 agentes Grupo D · pipeline 5 etapas · IaC Terraform/Helm · canary deploy · SLO + error budget
INFRA & OPS
LEGENDA
aws / hosting / kubernetes (setup e infra)
sre / cicd (execução e confiabilidade)
devsecops-infra (gate de segurança)
observability (monitoramento contínuo)
IaC = Infraestrutura como Código · SLO = Service Level Objective · SLA = Service Level Agreement
SAST = Static App Security Testing · HPA = Horizontal Pod Autoscaler · OIDC = OpenID Connect (GitHub Actions)
Trivy = scan de imagens Docker · Snyk = scan de dependências · Checkov = scan de IaC · OPA = Open Policy Agent