Team project · team of five · Since Nov 2026
AromaPacífico: AWS IoT Traceability Platform as Code
Coffee traceability from farm to port on AWS IoT: five versioned Terraform modules consumed by tag, OIDC pipelines that plan, deploy, destroy and check drift, and a deploy freeze during harvest.
The project
AromaPacífico follows every 60 kg sack of coffee from farms in Cauca, Huila and Tolima to the port of Buenaventura, monitors crops and drying, and supports a drone service for pest confirmation. A team of five designed the platform; I wrote the infrastructure repository and the checks every repository shares.
Reusable code lives in five module repositories: network, security, IoT telemetry ingestion, farm identity and an event-driven inference function, each with its own version and CI. The infrastructure repository only decides which version runs where: one root per environment (dev, test and prod) with encrypted, locked S3 state, and a bootstrap for the state buckets, keys, OIDC provider and pipeline roles.
Pipelines run on GitHub Actions with separate plan and apply roles per environment: a plan on every pull request, a deploy that applies the exact saved plan, a destroy, and a scheduled drift check. Test was applied from main with 127 resources, a smoke test traced a simulated reading from IoT Core to DynamoDB in about ten seconds, a second plan showed zero changes, and the environment was destroyed through the same pipeline.
Highlights
- 01Five versioned Terraform modules consumed by exact tag from dev, test and prod roots
- 02OIDC-only cloud access with separate plan and apply roles per environment
- 03Saved-plan deploys: 127 resources applied in test, then a clean zero-change plan
- 04Shared checks: TFLint, Checkov, Gitleaks, actionlint and zizmor at checksum-verified versions, SHA-pinned actions
- 05A tested harvest-season freeze gate that blocks deploys when the business cannot afford them