AWS proving ground

In 2016 I began moving Battle Station 5000 to AWS. Since then it has served as an environment for learning and experimentation. Today, as Core Infra, it runs as a minimum viable proving ground for work spanning orchestration, benchmarking, security hardening, observability, and networking.

Infrastructure and identity

  • Four AWS accounts: management, security, development, production
  • Identity Center SSO for all human access; root is break-glass only
  • Org-wide GuardDuty and IAM Access Analyzer configured in the security account
  • Budget alarms per account, verified working
  • WireGuard for private access, OpenVPN secondary option, both self-hosted
  • DNS resolvers with DoT, DNSSEC, and a stack of RPZ blocklists
  • CI/CD runners, self-hosted, managed by a home-grown controller written in Go
  • AMI builds using Packer and Ansible: Ubuntu, Amazon Linux, CentOS, and Kali bases
  • Nightly CVE scans of AMIs and ECR images
  • NAT instances as a cost savings over NAT GWs

Kubernetes platform

The first cluster was built using kubeadm. Then I tried kubespray, kops, microk8s, eksctl, and Rancher K3s.

Then I built four EKS platform stacks, each pairing a CNI and mesh for different isolation, observability, and security needs, and worked them into repeatable foundations.

ClusterCNIMeshPurpose
demo0AWS VPC CNInoneStock EKS with IP-and-port network policy, for workloads that don’t need a mesh. Fastest and cheapest to run, and least likely to break as EKS evolves.
demo1AWS VPC CNILinkerdPer-workload identity and mTLS with the lightest mesh, plus progressive rollouts.
demo2AWS VPC CNIIstio AmbientPer-workload identity and mTLS with a sidecar-free mesh.
demo3Cilium, replacing kube-proxyIstio AmbientPer-workload identity and mTLS with a sidecar-free mesh, on an eBPF datapath with Hubble flow visibility.

The clusters are brought up and torn down on demand. Bringup, provisioning and teardown are fully automated.

Platform components and workloads are modeled using Kustomize, with operational tasks captured as scripts and workflows. Workflows are modeled using Taskfiles or Makefiles or Ansible playbooks. App deployments are handled with Flux and Flagger, and in a couple cases, ArgoCD. EKS Pod Identity is used for workload access control. Kyverno policies (non-root, no privileged containers, resource limits, approved registries, no :latest tags) run in audit mode across every workload namespace and report violations. Once workloads comply with a policy, that policy is enforced at admission.

Apps and services

A few projects precipitated out of the infrastructure and security work.

ServiceWhat it doesNotes
URL shortenerShort links for internal and external URLsPrivate, authenticated
DNS leak testShows which resolvers a client actually usesPublic-facing, dual-stack
MyIPShows the user their IP address and request detailsPublic-facing, dual-stack
Security targetsReal systems for training exercisesKali, agents, skills
Data projectsPipelines and datasets under experimentPrivate, authenticated

New apps start from a set of base images: one per language, plus frontend and backend bases for common frameworks.

Solutions comparison

I ran many comparisons and benchmarks across different classes of infrastructure components and tooling.

  • Load balancers and proxies. nginx at L4 and L7, HAProxy, Caddy, Envoy, and Traefik on EC2, each with host and path routing, wildcard TLS and rewrites, against AWS ALB and NLB. On EKS the ALB won, provisioned through Gateway API, which removed the ingress-nginx hop entirely.
  • Cluster bootstraps. kubeadm and kubespray, then kops, eksctl and microk8s. EKS clusters modeled in Terraform are the current iteration. K3s is still used for single-node work.
  • Schedulers. Consul + Nomad + Vault as the HashiCorp alternative to Kubernetes.
  • DNS. Self-managed Pi-hole, BIND, Unbound, and CoreDNS. Today I use Route 53 and Cloudflare for hosted zones, and Unbound as a forwarding resolver with RPZ lists.
  • CI. GitLab CI, GitHub Actions. Now using a self-hosted runner fleet of 1 managed by a custom controller.
  • NAT. NAT instance vs NAT GW vs pfSense on EC2. The NAT instance won on cost and simplicity.
  • Frontend stacks. React, Next, Vue, and Ember, plus server-rendered Flask.
  • Budget cloud providers. DigitalOcean, Vultr, and Hivelocity bare metal, each managing a delegated subdomain from coreinfra.org. I compared each one against AWS on capabilities, pricing, API maturity, Terraform provider maturity, console maturity, reliability, and capacity.

Monitoring and observability

Given the low observability needs and ephemeral nature of this environment, I run a single-instance stack with an EBS volume. Previously I used Grafana Cloud with OTEL, Dash0, Datadog with auto-instrumentation, and native CloudWatch, but dropped them to minimize cost.

The stack skips broad dashboards and long retention. It provides resource limits to clamp resource spend, an audit trail, and alerting. Alerts cover cost overruns, unexpected EC2 instance counts, unusual network traffic volume, and spikes in authentication failures, as well as security events such as failed logins, IP bans and permanent blocks from fail2ban, and GuardDuty findings.

Why it exists

Production systems come with obligations: existing integrations, compliance, delivery dates, and business priorities. Core Infra has none.

The foundation stays ready for experimental work. Replace a component. Introduce chaos under load. Try a new tool, or deployment pattern. Teardown and rebuild into reliable building blocks and patterns.

There is no product. No status to report. Just a production-grade foundation I can bring up, tear down, and build on, and that I understand all the way down.