Skip to main content

Modern AWS Infrastructure Operations in 2026: IaC, Least-Privilege IAM, Datadog FinOps & DR

· 5 min read
Ilham Surya
Platform Engineer (Engineering Infra) - SRE & Agentic AI - Go, Python, TypeScript

Running production AWS infrastructure well isn't just about spinning up EC2 instances and RDS databases—it's about keeping deployments repeatable with IaC, locking down IAM to least privilege, correlating performance and cost across Datadog and AWS Cost Explorer, troubleshooting incidents with clean RCAs, and proving your multi-region DR actually works.

Here is a practical 2026 playbook synthesizing modern AWS practices—paired with four dedicated reference docs in my wiki if you want the copy-paste templates and checklists.

1. Harden Core AWS Resources by Default (EC2, S3, RDS, Lambda)​

Most cloud incidents trace back to loose defaults left behind during initial setup. Four guardrails I treat as non-negotiable on every workload:

  • EC2: Enforce IMDSv2 (http_tokens = "required"), drop public SSH ports completely in favor of AWS SSM Session Manager, default to encrypted gp3 volumes, and evaluate Graviton (t4g/m7g/c7g) instances.
  • S3: Enable Block Public Access at both account and bucket levels, enforce HTTPS (aws:SecureTransport), scope bucket policies to explicit prefixes, and set lifecycle rules so buckets don't grow forever.
  • RDS: Keep publicly_accessible = false in private subnets, allow access strictly by application Security Group ID, and replace static DB passwords with IAM Database Auth or auto-rotated Secrets Manager credentials.
  • Lambda: Give every function its own narrowly scoped execution role, attach it to a VPC only when reaching private resources (like RDS), and configure reserved concurrency + DLQs.

Deep dive: AWS Infrastructure Operations Handbook

2. Infrastructure as Code: Terraform 1.10+, AWS CDK & CloudFormation​

Consistent infrastructure starts with zero untracked console edits. Choosing between Terraform, AWS CDK, and CloudFormation mostly comes down to ecosystem and team fluency:

  • Terraform (v1.10+) remains the go-to when managing AWS alongside SaaS tools (Datadog, GitHub, Cloudflare) or multi-cloud environments. A major quality-of-life upgrade in Terraform 1.10+ is S3 native state locking (use_lockfile = true), which uses S3 conditional writes and finally removes the old DynamoDB lock table requirement.
  • AWS CDK shines for AWS-only teams that want reusable TypeScript/Python/Go constructs without managing external state files.
  • CloudFormation (with StackSets) fits teams prioritizing native AWS governance and zero external state tooling.

Whichever tool you pick, enforce plan/diff on every pull request, run policy-as-code checks (tflint/checkov or cdk-nag), and inject mandatory cost/owner tags (Environment, Team, Service, Owner) globally.

3. Operationalizing Least-Privilege IAM With Security​

Least privilege fails when engineers write policies by guesswork. In 2026, two native AWS workflows make least privilege practical:

  • IAM Access Analyzer: Turn on Unused Access tracking (flagging roles/keys untouched for 90+ days) and use Policy Generation from real CloudTrail logs to tighten broad dev roles down to exact production API actions.
  • IAM Permission Boundaries + OIDC: Eliminate static IAM access keys in CI/CD via OIDC role federation, and attach Permission Boundaries whenever teams can create roles so nobody can accidentally escalate privileges.

4. Monitoring Performance & Spend Together (Datadog + AWS Cost Explorer)​

Engineering metrics and cloud bills are two sides of the same system. Pairing Datadog (via CloudWatch Metric Streams, Resource Collection, and Cloud Cost Management) with AWS Cost Explorer and CUR 2.0 (configured from your AWS Management/Payer account with linked credits and discounts enabled) lets you:

  • Plot hourly/daily service spend directly beside CPU/memory P95, RDS connections, and EKS pod utilization.
  • Enforce tagging compliance using Datadog Scorecards so shared cluster and NAT Gateway costs map cleanly back to owners.
  • Catch runaway spend within 24 hours via Cost Anomaly Monitors instead of discovering it on next month's invoice.
  • Keep your observability bill healthy too—avoid high-cardinality metric tags (user_id, raw paths) and archive noisy logs to S3 via Datadog Log Optimizer.

Deep dive: Datadog & AWS Cost Explorer Observability & FinOps Guide

5. Faster Troubleshooting, Network Escalations & Blameless RCAs​

When an alert fires, classify it quickly across Performance, IAM/Permissions, Resource/Quotas, or Networking by correlating Datadog metrics/logs + Watchdog RCA against recent CloudTrail/IaC changes.

For suspected network issues, never escalate a vague "can't connect" ticket. Combine VPC Flow Logs (action:REJECT) in Datadog with AWS VPC Reachability Analyzer—it traces Security Groups, NACLs, Route Tables, and Transit Gateways hop by hop and gives the network team exact rule/route evidence in minutes. Follow every major incident with a blameless RCA that produces concrete IaC guardrails, monitor updates, and SOP improvements.

Deep dive + copy-paste templates: AWS Troubleshooting, RCA & Operational Runbooks

6. Multi-AZ HA, Immutable Backups & Tested Multi-Region DR​

Multi-AZ deployment is table stakes for availability, but real disaster recovery requires decoupling stateful data protection from compute:

  • Centralize backups via AWS Backup with cross-region (and ideally cross-account) copy rules, destination-region KMS CMKs, and AWS Backup Vault Lock (compliance mode) so backups stay immutable even against ransomware.
  • Match your DR tier (Backup & Restore, Pilot Light, Warm Standby, or Active-Active) to real business RPO/RTO targets.
  • Validate continuously with AWS Resilience Hub and scheduled sandbox restore drills—because an untested restore procedure is just a guess.

Deep dive: AWS High Availability, Backup & Multi-Region Disaster Recovery