How rsingh230105/ecommerce-terraform works
This repository is Terraform desired-state infrastructure for hosting Product, Order, and Inventory services on AWS; it does not implement those application services. The intended workflow is an operator selecting an environment and applying the root configuration, which provisions networking and service infrastructure. At runtime, documented request routing and the Order-to-Inventory event path connect the hosted services. The README describes intended configuration, not current AWS resources; it reports the stack was destroyed. Relationships below are based on README documentation because no source excerpts were provided.
Main entry points: main.tf Root configuration · ecs Product, Order, Inventory APIs · alb.tf Application load balancer · messaging.tf Order events topic
Components 16
Deployment & Network
- Root configuration
main.tf - VPC & subnets
modules/networking
Ingress & Services
- Application load balancer
modules/alb/alb.tf - Product, Order, Inventory APIs
modules/ecs - Order outbox publisher
modules/ecs - Product discovery
modules/ecs/service_connect.tf - Container repositories
modules/ecr/repositories.tf
Data & Events
- PostgreSQL database
modules/database/database.tf - Product media bucket
modules/storage/storage.tf - Order events topic
modules/messaging/messaging.tf - Inventory queue & DLQ
modules/messaging/messaging.tf
Security & Operations
- Network security groups
modules/security/security_groups.tf - Task roles & policies
modules/iam/iam.tf - CloudWatch log groups
modules/observability/logs.tf
Other components
- Terraform operator
- Internet clients
Connections 20
- Terraform operator → Root configuration: applies configuration
README.md - Root configuration → VPC & subnets: configures
README.md - Root configuration → Application load balancer: configures
README.md - Root configuration → Product, Order, Inventory APIs: configures
README.md - Root configuration → Order outbox publisher: configures
README.md - Root configuration → Container repositories: configures
README.md - Root configuration → PostgreSQL database: configures
README.md - Root configuration → Product media bucket: configures
README.md - Root configuration → Order events topic: configures
README.md - Root configuration → Inventory queue & DLQ: configures
README.md - Root configuration → Network security groups: configures
README.md - Root configuration → Task roles & policies: configures
README.md - Root configuration → CloudWatch log groups: configures
README.md - Internet clients → Application load balancer: sends requests
README.md - Application load balancer → Product, Order, Inventory APIs: routes API paths
README.md - Product, Order, Inventory APIs → Product discovery: uses discovery
README.md - Product discovery → Product, Order, Inventory APIs: discovers Product
README.md - Order outbox publisher → Order events topic: publishes events
README.md - Order events topic → Inventory queue & DLQ: delivers events
README.md - Inventory queue & DLQ → Product, Order, Inventory APIs: delivers to Inventory
README.md