GuideIntermediate

Cicd And Gitops On Aws

This guide takes the Andes Cargo Terraform project, finished by hand in the Terraform and IaC Guide, and teaches you to stop running `terraform apply` from your laptop and start running it inside a pipeline. It distinguishes continuous integration, continuous delivery, and continuous deployment, defines GitOps (Git as the source of truth for infrastructure, not just code), and dissects the full anatomy of a GitHub Actions workflow. It builds the industry-standard pattern — `fmt`/`validate`/`plan` run on every Pull Request as the artifact reviewed before merging, and `apply` run automatically only when that PR merges to `main` — covers secrets management and why a long-lived AWS credential in a repository is the most-cited security antipattern in the market, shows the federated OIDC pattern in real YAML, and teaches approval environments, concurrency control, and scheduled drift detection. The rollback module teaches the infrastructure-specific pattern (revert the commit, let the same pipeline re-apply) and builds a real guardrail that fails the job if a change tries to destroy Andes Cargo's data table — revisiting the real `terraform destroy` incident from the previous guide by asking whether a pipeline would have prevented it. Everything runs $0 and reproducibly with `act`, the tool that executes real GitHub Actions YAML in local Docker, against the same LocalStack lab from the previous guides — with explicit honesty about what `act` cannot simulate (environment approvals, branch protection, real PR comments), each labeled at the exact point it appears.

64
lessons
8
modules
English · Spanish
available in
Yes
certificate
Free
access
NIEVA

Outcomes

What you'll be able to do

  • Distinguish continuous integration, continuous delivery, and continuous deployment, and place each piece of an infrastructure pipeline correctly
  • Explain what GitOps is and why Git becomes the source of truth for infrastructure, not just a code history
  • Write and read the full anatomy of a GitHub Actions workflow (`on`/`jobs`/`steps`/`runs-on`/`uses`/`with`), with its triggers (`push`, `pull_request`, `schedule`, `workflow_dispatch`)
  • Build the `fmt`/`validate`/`plan` pattern on every Pull Request as the artifact reviewed before merging an infrastructure change
  • Chain an automatic `apply` on merge to `main`, using `needs` and the exact plan that was reviewed, without recomputing it
  • Handle secrets with GitHub Secrets and explain why a long-lived credential in a repository is an antipattern, with federated OIDC as the modern alternative
  • Configure concurrency control to prevent a simultaneous double `apply` against the same state
  • Schedule drift detection with `schedule` and cron syntax
  • Apply the infrastructure rollback pattern (revert the commit, let the pipeline re-apply) and use branch protection as a merge control
  • Build a guardrail that inspects a JSON `plan` and fails the pipeline before a protected resource gets destroyed
  • Run GitHub Actions workflows locally with `act`, simulating events and passing secrets without depending on a real GitHub account

Before you start

What you need to bring

It's for you if...

  • Devs who already completed the Terraform and IaC Guide and want to stop running `apply` by hand from their laptop
  • Teams that need mandatory review before an infrastructure change reaches production
  • Devs looking to replace long-lived AWS credentials stored in a repository with a more secure pattern
  • Anyone who needs the standard CI/CD pattern for infrastructure as code (not application code) before building advanced security guardrails

Requirements and materials

  • Terraform and IaC Guide completed (the `andes-cargo-infra/` project, the `init`/`plan`/`apply`/`destroy` cycle, reusable modules)
  • Practical Git usage: `init`/`add`/`commit`/`branch`/`merge`/`revert`
  • Docker installed and running locally (to run `act` and LocalStack)
  • Free LocalStack account with an auth token, no credit card or real GitHub account needed

Content

The syllabus, module by module

Open any of them to see its lessons.

Common questions

What people usually ask

Start whenever you like

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!