How cxmiller21/aws-eks-microservices works
Purpose and Entry Points
This is infrastructure-as-code for running the Online Boutique microservice demo on either local Kind or AWS EKS, with GitOps and a Grafana-based observability stack. Primary entry points are local bootstrap via scripts/create-kind-cluster.sh, AWS provisioning in terraform/eks/main.tf, and workload installation through scripts/install-online-boutique.sh.
Deployment Targets
Local development uses Kind configuration and Kubernetes manifests: kubernetes/local/cluster-config.yaml, kubernetes/local/online-boutique.yaml, and local Helm values under kubernetes/helm/local/values/. AWS deployment is centered on EKS Terraform plus EKS-specific Helm values: terraform/eks/main.tf, terraform/eks/kubernetes.tf, kubernetes/helm/eks/values/.
AWS Foundation
The EKS Terraform stack establishes the cluster and its AWS integration, including IAM, Kubernetes resources, ArgoCD, and S3-backed infrastructure: terraform/eks/main.tf, terraform/eks/iam.tf, terraform/eks/s3.tf. This is the boundary between AWS account resources and in-cluster workloads. It relies on AWS EKS, IAM, S3, and likely ALB-related resources; scripts/install-eks-alb-controller.sh supports ingress load-balancer integration.
GitOps and Application Delivery
ArgoCD is installed/configured as the deployment controller, with an Application manifest pointing it at the Online Boutique workload: kubernetes/argocd/argocd.yaml, kubernetes/argocd/applications/online-boutique.yaml, terraform/eks/argocd.tf. ArgoCD forms the control-plane boundary between repository manifests and Kubernetes reconciliation.
Workload Layer
The primary application is Google’s Online Boutique microservice deployment, represented separately for generic/EKS and local use: kubernetes/online-boutique/kubernetes-manifests.yaml, kubernetes/local/online-boutique.yaml, kubernetes/online-boutique/tracing/kubernetes-manifests-tracing.yaml. Traffic reaches services through Kubernetes exposure and, on EKS, AWS ALB ingress. Load-test manifests provide synthetic application traffic: kubernetes/local/microservices-loadtest.yaml.
Observability Pipeline
The repository deploys Grafana, Prometheus/Mimir metrics, Loki logs, Tempo traces, and Promtail collection. EKS-oriented distributed stack values are in kubernetes/helm/eks/values/grafana-loki-distributed-values.yaml, kubernetes/helm/eks/values/grafana-mimir-distributed-values.yaml, and kubernetes/helm/eks/values/grafana-tempo-distributed-values.yaml. Promtail runs as a daemonset to collect node/container logs: kubernetes/daemonset/promtail.yaml. Grafana queries Loki, Tempo, and Mimir/Prometheus; tracing manifests instrument or configure the application-side trace path.
Lifecycle and Cleanup Automation
Shell scripts orchestrate common operational sequences, while Terraform cleanup automation addresses AWS resource teardown. Key operations are scripts/install-grafana-lgtm-stack.sh, scripts/otle-local-app.sh, and scripts/cleanup-eks.py. A separate Terraform Lambda stack schedules or emits cleanup notifications using EventBridge and SNS: terraform/cleanup-lambda/eventbridge.tf, terraform/cleanup-lambda/sns.tf, terraform/cleanup-lambda/src/cleanup-eks/index.py.
Main entry points: install-grafana-lgtm-stack.sh LGTM stack installer · kubernetes-manifests.yaml Online Boutique manifests · grafana-loki-distributed-values.yaml Loki · grafana-tempo-distributed-values.yaml Tempo
Components 24
Local Kind
- Kind bootstrap · Creates the local development cluster.
scripts/create-kind-cluster.sh - Kind cluster config
kubernetes/local/cluster-config.yaml - Local Kind cluster
- Local Online Boutique
kubernetes/local/online-boutique.yaml
AWS / EKS
- EKS foundation · Provisions the EKS deployment foundation.
terraform/eks/main.tf - AWS EKS cluster
- IAM integration
terraform/eks/iam.tf - S3 infrastructure
terraform/eks/s3.tf - ALB controller setup
scripts/install-eks-alb-controller.sh - ALB ingress · Exposes EKS workloads externally.
GitOps Delivery
- EKS Kubernetes resources
terraform/eks/kubernetes.tf - ArgoCD control plane
kubernetes/argocd/argocd.yaml - Online Boutique application · Declares the workload reconciliation target.
kubernetes/argocd/applications/online-boutique.yaml - Online Boutique manifests
kubernetes/online-boutique/kubernetes-manifests.yaml
Observability
- Application tracing
kubernetes/online-boutique/tracing/kubernetes-manifests-tracing.yaml - LGTM stack installer
scripts/install-grafana-lgtm-stack.sh - Loki
kubernetes/helm/eks/values/grafana-loki-distributed-values.yaml - Mimir / Prometheus
kubernetes/helm/eks/values/grafana-mimir-distributed-values.yaml - Tempo
kubernetes/helm/eks/values/grafana-tempo-distributed-values.yaml - Promtail · Collects node and container logs.
kubernetes/daemonset/promtail.yaml - Grafana · Queries metrics, logs, and traces.
Lifecycle Automation
- EKS cleanup Lambda
terraform/cleanup-lambda/src/cleanup-eks/index.py - Cleanup schedule · Triggers cleanup automation and notifications.
terraform/cleanup-lambda/eventbridge.tf - Cleanup notifications
terraform/cleanup-lambda/sns.tf
Connections 26
- Kind bootstrap → Kind cluster config: uses
- Kind cluster config → Local Kind cluster: creates
- Local Online Boutique → Local Kind cluster: deploys to
- EKS foundation → AWS EKS cluster: provisions
- IAM integration → AWS EKS cluster: authorizes
- S3 infrastructure → EKS foundation: supports
- ALB controller setup → ALB ingress: installs
- ALB ingress → AWS EKS cluster: routes into
- EKS Kubernetes resources → AWS EKS cluster: applies resources to
- EKS Kubernetes resources → ArgoCD control plane: provisions
- ArgoCD control plane → Online Boutique application: reconciles
- Online Boutique application → Online Boutique manifests: targets
- Online Boutique manifests → AWS EKS cluster: deploys to
- Application tracing → Online Boutique manifests: instruments
- Application tracing → Tempo: exports traces
- LGTM stack installer → Loki: installs
- LGTM stack installer → Mimir / Prometheus: installs
- LGTM stack installer → Tempo: installs
- Promtail → Loki: sends logs
- AWS EKS cluster → Promtail: runs
- Grafana → Loki: queries logs
- Grafana → Mimir / Prometheus: queries metrics
- Grafana → Tempo: queries traces
- Cleanup schedule → EKS cleanup Lambda: triggers
- EKS cleanup Lambda → AWS EKS cluster: tears down
- Cleanup schedule → Cleanup notifications: publishes