Understanding an AWS EKS E-commerce Project: Infrastructure, CI/CD and Initial Security Findings


As part of my ongoing DevOps learning journey, I have started exploring a team-based e-commerce infrastructure project built around Amazon Elastic Kubernetes Service (EKS), Terraform, GitHub Actions and Argo CD.

Rather than rushing into deployment, I decided to first understand how the project is structured, how its components work together, and where security considerations come into play.

This post documents my initial investigation, the project architecture I have identified, and some important findings from reviewing its infrastructure repository and deployment instructions.

1. Setting Up My Personal Project Repository

The first step was creating my own copy of the team's Terraform infrastructure repository so I could study and work with the code independently.

I configured the local Git repository, established my Git identity and connected it to my personal GitHub repository.

This gives me an environment where I can investigate the infrastructure code, understand its purpose and make improvements without directly modifying the original team repository.

My repository: Pod 6 E-commerce EKS Security Project

2. Exploring the Project Structure

My initial investigation involved examining the repository's directory structure and identifying the purpose of its major files and folders.

The repository contains several Terraform configuration files, including:

  • 00-provider.tf: Configures Terraform providers and the remote S3 state backend.
  • 01-vpc.tf: Defines the AWS Virtual Private Cloud.
  • 02-public-sub.tf and 03-private-sub.tf: Define public and private subnets.
  • 04-igw.tf and 06-internet-gateway-attach.tf: Configure internet gateway connectivity.
  • 07-security.tf: Defines security group rules.
  • 09-eks-cluster.tf: Defines the Amazon EKS cluster.
  • 10-eks-node-group.tf: Defines the managed worker node group.
  • 12-cert-manager.tf and 13-nginx-ingress.tf: Configure certificate management and NGINX ingress.
  • 14-efs.tf and 17-ebs.tf: Configure persistent storage resources.
  • 15-argocd.tf: Configures Argo CD.

Other important directories include charts/, manifests/, efs-test/, jira/ and .github/workflows/.

One important observation was that this repository primarily contains infrastructure and deployment configuration. The actual e-commerce application source code is expected to be maintained in separate repositories.


3. Understanding the E-commerce Project Architecture

From the Terraform files and project deployment roadmap, I identified the major components that make up the intended platform.

The infrastructure is designed around Amazon EKS, which provides a managed Kubernetes control plane for running containerised application workloads.

The intended customer request flow can be summarised as follows:

  1. A customer accesses the e-commerce website through a web browser.
  2. DNS directs the request towards the application's load balancer.
  3. The NGINX Ingress Controller receives and routes incoming traffic.
  4. The request reaches the appropriate application service running inside Kubernetes.
  5. The application communicates with supporting services and databases where necessary.
  6. The application returns a response to the customer.

My previous hands-on experience with AWS networking, load balancing and storage is documented in my article on AWS EC2, NGINX, Application Load Balancer, Auto Scaling and EFS. That experience provides useful background as I explore the networking and storage components of this larger EKS project.

The project also incorporates supporting technologies such as Amazon ECR, GitHub Actions, Argo CD, PostgreSQL, Valkey, Kafka, OpenSearch, Prometheus, Grafana and Jaeger.

These components serve different purposes, including container image storage, automated builds, application deployment, data management, logging, monitoring and distributed tracing.

4. Understanding the Deployment Roadmap

I also inspected the project's Jira deployment task list. This was particularly useful because it helped me understand how the team intends to move from infrastructure preparation to a functioning e-commerce application.

The roadmap is divided into several stages:

Infrastructure Preparation

This stage involves preparing the S3 bucket for Terraform state, configuring GitHub OIDC authentication, and deploying the AWS networking and EKS infrastructure.

Continuous Integration (CI)

The application repositories will use GitHub Actions to build container images and publish them to Amazon Elastic Container Registry (ECR).

The roadmap eventually targets 24 service images, which will be built in stages.

Continuous Deployment (CD)

Argo CD will manage the deployment of application configurations into Kubernetes using a separate Git repository commonly referred to as the k8s-file repository.

Application Deployment and Testing

The application deployment includes database services, logging, observability, the shop application services and an AI assistant.

The testing stage includes e-commerce transactions, TLS certificate checks, monitoring, distributed tracing and GitOps deployment verification.

Figure 2: Project Jira deployment roadmap.


Terminal displaying the e-commerce project's Jira deployment roadmap, including AWS infrastructure preparation, Terraform validation, security scanning, CI/CD automation, application deployment and testing tasks.


Alt text: Terminal displaying the e-commerce project's Jira deployment roadmap, including AWS infrastructure preparation, Terraform validation, security scanning, CI/CD automation, application deployment and testing tasks.

5. Initial CI/CD Pipeline Investigation

I inspected the Terraform GitHub Actions workflow located at:

.github/workflows/terraform.yml

The workflow is configured to respond to pushes to the main branch. It also requests GitHub OIDC token permission, which is intended to allow GitHub Actions to assume an AWS IAM role without storing permanent AWS access keys in GitHub secrets.

The intended infrastructure pipeline includes:

  • Terraform initialisation, formatting and validation.
  • Infrastructure security scanning using tfsec.
  • Code analysis using SonarQube.
  • Terraform plan and apply.
  • Deployment verification.

I have also explored GitHub Actions through my Automated Website Uptime Monitoring with Bash and GitHub Actions project, where I built a Bash monitoring script and integrated it with GitHub Actions. That experience is helping me understand the automation concepts used in this larger infrastructure project.

However, during my review, I noticed that most of these jobs were commented out in the current workflow file.

I also identified an important issue: the Terraform destroy job remains active, even though the surrounding comments suggest that it should be disabled unless an administrator intentionally enables it.

The workflow currently has a push-to-main trigger, while the destroy job contains:

terraform destroy -auto-approve

This combination could allow a push to the main branch to trigger infrastructure destruction if the AWS authentication and Terraform initialisation steps succeed.

This is an important pipeline safety issue. I will not push changes to the main branch or enable this workflow until the problem has been reviewed and corrected.

6. Initial Cloud Security Considerations

As I begin understanding the project from a Cloud Security perspective, I am identifying the areas that require attention throughout the infrastructure and application delivery process.

  • Identity and access management: Reviewing IAM roles, GitHub OIDC trust relationships and permissions assigned to users and workloads.
  • Network security: Examining VPC design, public and private subnets, routing and security group rules.
  • Kubernetes security: Understanding cluster access, RBAC, workload permissions and network isolation.
  • Container security: Considering image scanning and the use of trusted container images before publishing to ECR.
  • Secrets management: Ensuring API keys, passwords and other sensitive configuration are not exposed in source code or Git history.
  • CI/CD security: Reviewing pipeline permissions, security scans and safeguards against unintended infrastructure changes.
  • Monitoring and visibility: Understanding how logs, metrics and traces can help identify suspicious activity and operational problems.

These are initial investigation areas, not claims that every security control has already been implemented or that every identified concern has been confirmed as a vulnerability.

7. What I Have Learned So Far

This initial investigation has helped me understand that an EKS-based e-commerce platform involves much more than creating a Kubernetes cluster.

Infrastructure provisioning, container image management, CI/CD automation, GitOps deployment, persistent storage, networking and security all work together to support the application.

I have also learned that security needs to be considered throughout the delivery process rather than treated as a final step after deployment.

8. Current Project Status

At this stage, I have:

  • Created and configured my personal infrastructure repository.
  • Inspected the Terraform repository structure.
  • Reviewed the project's Jira deployment roadmap.
  • Identified the major infrastructure and application components.
  • Inspected the Terraform GitHub Actions workflow.
  • Identified a potentially dangerous active Terraform destroy job.
  • Started mapping the security areas that require further investigation.

Important: No AWS infrastructure has been deployed from my personal repository at this stage. I am currently studying the architecture and reviewing the configuration before proceeding with deployment activities.

Conclusion

This is the beginning of a deeper hands-on learning experience involving AWS, Terraform, Kubernetes, GitHub Actions, Argo CD and Cloud Security.

My immediate goal is to understand how the complete e-commerce platform works, identify the security responsibilities within the project, and learn how to contribute meaningful security improvements.

I will continue documenting the process as I investigate the application repositories, deployment configurations and security controls.

One step at a time, one lesson at a time.

Documenting my journey as I learn and grow in Cloud and DevOps.

Comments

Popular posts from this blog

How I Fixed GitHub Error: failed to push some refs to github.com in 2026

How I Deployed Netflix Clone (NGold) to AWS EC2 - Live at 32.196.145.76:3000 [Docker + Nginx Guide]

Understanding Linux Environment — The Real Engine Behind My AWS Cloud Deployment