Posts

Showing posts with the label aws

Terraform State Management, Locking, and Backups: A Production Deep Dive

Image
Terraform State Management, Locking, and Backups: A Production Deep Dive Terraform state is an operational database, not a disposable artifact. This deep dive covers S3 backends, S3 and DynamoDB locking, encryption, IAM, backups, migrations, state surgery, CI concurrency, and incident runbooks. TL;DR Terraform state management should be treated like production data management: isolate state by blast radius, store it in a remote backend, enable locking, encrypt it, version it, and rehearse restore procedures before an outage. For AWS teams, the modern S3 backend can use native S3 lock files, while older estates may still need DynamoDB locking during migration. The strongest designs combine least-privilege IAM, S3 Versioning, KMS controls, CI concurrency, state migration discipline, and documented runbooks for stuck locks, accidental overwrites, and state surgery. Terraform State Is a Database, Not a File Use a remote backend, lock state, and back it up. The production version is mo...

Environment Promotion Strategies for GitOps Pipelines: Branches, Paths, Tags, and Digests

Image
Environment Promotion Strategies for GitOps Pipelines: Branches, Paths, Tags, and Digests GitOps promotion is a data-model problem before it is a tooling problem. This guide compares branches, directories, tags, image digests, Flux automation, and Argo CD Image Updater trade-offs. TL;DR A reliable GitOps promotion strategy makes the promoted artifact, environment-specific configuration, approval record, and rollback target explicit. Directory-per-environment models are simple and auditable, branch-per-environment models isolate change history but create merge drift, tag or SHA promotion improves reproducibility, and image-digest promotion closes supply-chain gaps. Flux Image Automation and Argo CD Image Updater can reduce toil, but production promotion still needs protected branches, signed commits or tags, policy gates, drift detection, and a clear handoff to progressive delivery across clusters safely. Promotion is the movement of a reviewed artifact through explicit environment s...

Platform Engineering on AWS with EKS Blueprints and GitOps

Image
Platform Engineering on AWS with EKS Blueprints and GitOps Platform engineering on AWS gets much clearer when Terraform owns day-0 infrastructure and Argo CD owns day-2 reconciliation. This guide shows how EKS Blueprints and the GitOps Bridge pattern create that boundary. TL;DR Platform engineering on AWS is easier to reason about when you separate responsibilities: Terraform provisions the EKS cluster, networking, IAM, and add-on metadata, while Argo CD continuously reconciles in-cluster applications and platform add-ons from Git. EKS Blueprints and the GitOps Bridge pattern make that handoff explicit by passing cluster context into Argo CD instead of letting Terraform and GitOps compete for the same resources. The result is a cleaner bootstrap flow, fewer ownership collisions, and a platform model that scales better across teams and environments. Platform Engineering Starts With Ownership, Not Tools The most common mistake in platform engineering is treating Terraform, EKS Bluepr...