INTERMEDIATE · 8 MODULES · 64 LESSONS
CI/CD and GitOps on AWS
Stop applying infrastructure changes by hand from your laptop: move them into a pipeline that reviews every change before merging and blocks the dangerous ones.
- For you if
- You already define infrastructure with Terraform and want nobody running apply by hand in production.
- By the end
- You'll know how to build GitHub Actions workflows, handle secrets without long-lived keys, detect drift, and roll back safely.
- You need
- The Terraform guide completed, Git, Docker, and a LocalStack account. No GitHub account needed.

Curriculum
01Why Cicd And Gitops
- Introduction to the guide: from the terminal to the pipeline
- The trouble with manual `apply`
- CI, CD, and CD: three things, one acronym
- What is GitOps
- GitHub Actions and its alternatives, with market honesty
- Hands-on: installing `act`
- Hands-on: your first local workflow, end to end
- Project: bootstrapping Andes Cargo's pipeline
02Anatomy Of A Github Actions Workflow
- Introduction: reading and writing a workflow with judgment
- A workflow block's complete anatomy
- Triggers: `push`, `pull_request`, `workflow_dispatch`
- The `schedule` trigger and cron syntax
- Reusable Actions: `uses`, `with`, and the supply-chain risk
- Hands-on: simulating events with `act -e`
- Hands-on: passing secrets to `act`
- Project: Andes Cargo's first real workflow
03The Iac Pipeline Fmt Validate Plan
- Module introduction: what runs before merging
- The HashiCorp/GitHub pattern: `plan` on PR, `apply` on merge
- Installing Terraform inside an ephemeral runner
- Hands-on: `fmt` and `validate` as steps that can fail the job
- Connecting the runner to LocalStack through the host
- Hands-on: `terraform plan` running inside CI
- Publishing the `plan` as review evidence
- Project: Andes Cargo's `ci.yml`
04Secrets Environments And Identity
- Introduction: who can apply what, and with which key
- Why credentials never belong in the repository
- GitHub Secrets: repo-scoped and environment-scoped
- What is OIDC federation
- The OIDC pattern in YAML, named
- GitHub Environments: `dev` and `prod`
- Hands-on: dummy credentials for LocalStack
- Project: Andes Cargo's secrets and environments plan
05Apply On Merge The Cd Half
- Introduction: from review to apply
- The merge trigger: `push` to `main`
- Chaining jobs with `needs` and passing the exact `plan`
- Hands-on: building `apply.yml`
- Concurrency control: avoiding the double `apply`
- Scheduled drift detection
- Hands-on: running the drift job manually
- Project: Andes Cargo's full plan-to-apply pipeline
06Rollback And Safety Nets
- Introduction: what to do when the `apply` goes wrong
- What rollback means for infrastructure
- Hands-on: the `git revert` pipeline
- Branch protection as a control
- Would a pipeline have stopped the Claude Code incident?
- Guardrails of `apply`, named
- Hands-on: a minimal, real, executed guardrail
- Project: Andes Cargo's safety net
07Gitops Beyond Terraform
- Module 7 introduction: what this guide is not
- GitLab CI, CircleCI, and Jenkins by contrast
- GitOps for Kubernetes: ArgoCD and Flux, named
- *Push-based* vs. *pull-based*: two GitOps, one principle
- Application deployment strategies, named
- CI/CD for application code vs. infrastructure
- Hands-on: a minimal application pipeline, just for contrast
- Project: Andes Cargo's tooling decision
08Capstone The Andes Cargo Pipeline
- Capstone introduction: the complete pipeline, end-to-end
- Architecture review: the complete pipeline
- End-to-end walkthrough: a real change crossing the pipeline
- End-to-end walkthrough: a rejected change
- What only a real GitHub account shows
- The security this guide didn't build
- What Andes Cargo still needs
- Final project: the Andes Cargo pipeline as a deliverable
Reviews
What students say
These reviews are from enrolled students who completed at least 50% of the course. We moderate reviews only on content grounds (spam, offensive language, personal data), never for being critical or negative.
No approved reviews yet.
Be the first to share your experience!