586 words
3 min read

GitOps on AWS — Real-World DevOps Pipeline with Argo CD, Terraform & EKS

By · Solutions Architect · Docker Captain · IBM Champion
GitOps on AWS — Real-World DevOps Pipeline with Argo CD, Terraform & EKS

Today, I’m showing you how I built a production-grade GitOps pipeline on AWS, fully containerized and based on real-world experience.

No buzzwords. No clickbait. Just architecture that works — and a mindset that scales.


Why I Chose GitOps#

GitOps is about control. Git becomes your single source of truth.

  • Every change goes through a pull request.
  • Every rollback is just a git revert.

No guesswork. No “who deployed this on Friday night?” In 2025, GitOps isn’t a trend. It’s the baseline for any team that takes infrastructure seriously.

But why exactly did I choose GitOps? Let’s dive into my personal setup.


My Stack at a Glance#

Just one terraform apply, and you have a fully reproducible, codified platform. Zero manual steps.


Why Containers?#

A container is the smallest unit of reliability. It runs exactly the same in dev, staging, and production. It’s isolated. Predictable. Versioned. CI builds the image, tags it — like release-2025.04.16-prod — pushes it to Amazon ECR, and that’s exactly what runs in production.

Remember that old joke, “but it works on my machine”? Containers kill that excuse forever. You build systems, not chaos.


The GitOps Mindset Shift#

But there’s a key mindset shift you need for GitOps — let’s talk about it. Here’s a common mistake I see all the time, even from experienced teams:

They think CI should handle deployments. In GitOps, it doesn’t.

  • CI’s job is simply to push changes to Git.
  • Argo CD handles the deploy. On its own. On schedule. No manual triggers.

That’s the power of GitOps:

  • Git is truth.
  • CI is just logistics.

How It All Connects#

  • CI runs on GitHub Actions.
  • It builds the Docker image, pushes it to Amazon ECR, updates Helm values, and commits to Git.
  • Argo CD detects changes and applies them to the cluster.
  • Terraform provisions the entire platform — including Argo CD itself.
  • Vault integrates securely, providing secrets at runtime.

No plain-text tokens. No unencrypted environment variables.

This stack isn’t just functional. It’s resilient.


Hard-Earned Lessons#

But getting here wasn’t simple. Let me share the lessons I’ve learned so you don’t repeat my mistakes.

1. Bootstrapping#

Argo CD doesn’t magically install itself.

You need a clear plan. I personally use Terraform and the Helm Provider to automate initial setup.

2. Namespaces#

Never run Argo CD alongside your applications.

Isolation is key. Trust me — your future self will thank you.

3. Secrets#

If you’re putting secrets in YAML files, you’re not doing GitOps. You’re doing “hopeOps.”

Use Vault or AWS Secrets Manager. Never expose credentials.


Monitoring: The Non-Negotiable#

If your monitoring system is users calling you at 3 AM, it’s not monitoring—it’s a nightmare.

I use Prometheus + Grafana for metrics, Loki for logs, and Alertmanager for alerts. Argo CD also exposes metrics, so I instantly see if something drifts from Git.

Monitoring isn’t an add-on. It’s essential. Without it, you’re flying blind.


What Success Looks Like#

  • Deployment time: minutes, not hours.
  • Rollbacks: one click.
  • New environments: one command.
  • New developers: clone and go.
  • Everything documented, repeatable, and under control.

This isn’t hype. This is reality.


Final Thoughts#

Let’s wrap this up. This isn’t just a technology stack. It’s a mindset. Containers, infrastructure as code, Git at the center of all changes — this is what mature systems look like in 2025. GitOps isn’t about YAML. It’s about building systems you can trust.

Thank you for reading! Don’t forget to check out the video version for additional insights and visuals.


Vladimir Mikhalev

Docker Captain  ·  IBM Champion  ·  AWS Community Builder

The Verdict — production-tested analysis on YouTube.

Related Posts

Same category
  1. 1
    Docker supply chain hardening — from Scout D to OpenSSF 7.8 on a 730K-pull image
    DevOps & Cloud · How I hardened a 730K-pull public Docker image from Scout grade D to OpenSSF Scorecard 7.8. Multi-stage build, cosign signing, SLSA provenance, non-root default, and the incident that changed how I ship attestations.
  2. 2
    Cloudflare Web Analytics on Astro — Why Removing GA4 Unlocked Lighthouse 100
    DevOps & Cloud · How removing Google Analytics 4 from an Astro site unlocked Lighthouse 100, why Cloudflare Web Analytics replaced it, and what the tradeoffs actually cost.
  3. 3
    Platform Engineering — The Complete, Practical Guide to Building Internal Developer Platforms That Scale
    DevOps & Cloud · A deep, practical guide to Platform Engineering. Learn how to build internal developer platforms, golden paths, GitOps workflows, and scalable cloud foundations.
  4. 4
    Amazon Q vs DevOps Chaos — Can This AI Fix AWS Faster Than You?
    DevOps & Cloud · Fix AWS issues faster with Amazon Q, the AI assistant built for DevOps. Real-world examples, limitations, and how it compares to ChatGPT.

Random Posts

Random
  1. 1
    Disable Server Manager Autostart in Windows Server 2012 R2
    SysAdmin & IT Pro · Learn how to disable Server Manager autostart in Windows Server 2012 R2 using Server Manager settings, Task Scheduler, CMD, and PowerShell.
  2. 2
    Mastering Docker Scout through Docker Desktop GUI and CLI
    DevOps & Cloud · Master Docker Scout with hands-on GUI and CLI examples. Learn to scan, analyze, and secure container images using advanced techniques and real-world workflows.
  3. 3
    Install Docker Engine and Docker Compose on Ubuntu Server
    DevOps & Cloud · Learn how to install Docker Engine and Docker Compose on Ubuntu Server. Follow a clear, step-by-step guide to get Docker running quickly and securely.
  4. 4
    Install Active Directory Domain Services on Windows Server 2019
    SysAdmin & IT Pro · Step-by-step guide to install and configure Active Directory Domain Services (AD DS) on Windows Server 2019 using Server Manager. Ideal for IT pros and sysadmins.
GitOps on AWS — Real-World DevOps Pipeline with Argo CD, Terraform & EKS
https://heyvaldemar.com/gitops-on-aws-real-world-devops-pipeline-with-argo-cd-terraform-and-eks/
Author
Vladimir Mikhalev
Published
2025-04-22
License
CC BY-NC-SA 4.0