Skip to content

new updates for infra - #13

Merged
juandiegocv27 merged 19 commits into
mainfrom
dev
Dec 3, 2025
Merged

new updates for infra#13
juandiegocv27 merged 19 commits into
mainfrom
dev

Conversation

@juandiegocv27

Copy link
Copy Markdown
Owner

This pull request introduces significant improvements to the infrastructure codebase, focusing on modularization, documentation, and best practices for Terraform workflows. The most important changes are the introduction of reusable core modules (such as VPC and backend), enhancements to documentation (including architecture and module READMEs), and the setup of pre-commit hooks for Terraform code quality. Additionally, it removes legacy or unused EKS-related files.

Infrastructure Modularization and Environment Wiring

  • Added a reusable core/vpc module using the official AWS VPC Terraform module, with configurable variables and outputs for VPC and subnet IDs. This module is currently experimental and not used in infra v1. (core/vpc/main.tf, core/vpc/variables.tf, core/vpc/versions.tf, core/vpc/README.md) [1] [2] [3] [4]
  • Added a core/backend module for managing the Terraform remote state backend (S3 bucket and DynamoDB lock table), with autogenerated documentation. (core/backend/README.md)
  • Updated the envs/dev environment to consume the new VPC module and backend, with improved variable handling and backend configuration. (envs/dev/main.tf, envs/dev/backend.tf, envs/dev/README.md, envs/dev/versions.tf, envs/dev/outputs.tf) [1] [2] [3] [4] [5]

Documentation and Architecture

  • Substantially expanded the architecture documentation to clarify the AWS integration scope, modular structure, and future plans for the ShopStack infrastructure. Also updated the folder structure and added a visual architecture overview placeholder. (docs/ARCHITECTURE.md) [1] [2]

Terraform Workflow and Quality

  • Introduced a .pre-commit-config.yaml file with hooks for Terraform formatting, validation, linting, security scanning (Trivy), and documentation generation, to enforce best practices and code quality.

Cleanup and Removal of Legacy EKS Files

  • Removed the old EKS module, its variables, outputs, and the aws-auth patch, cleaning up legacy resources not used in the current infra design. (eks/main.tf, eks/variables.tf, eks/outputs.tf, eks/aws-auth-patch.yaml) [1] [2] [3] [4]

General Provider Configuration

  • Added a root-level providers.tf for local development and bootstrapping, specifying provider version and default AWS profile. (providers.tf)

juandiegocv27 and others added 19 commits November 2, 2025 04:24
restructure vpc and backend modules
…ntralize-provider

Requirements & Analysis
Add high-level architecture overview for ShopStack infra
Add high-level architecture overview for ShopStack infra pt2
@juandiegocv27
juandiegocv27 merged commit 41201e8 into main Dec 3, 2025
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant