Skip to content

Conversation

@mishraomp
Copy link
Collaborator

No description provided.

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR refactors the existing flat Terraform configurations into reusable modules, updates frontend and API stacks to consume those modules, and adjusts CI/CD workflows to align with the new module outputs and tool versions.

  • Introduce and wire up new Terraform modules for WAF, S3 buckets, CloudFront, API Gateway, networking, and common resources
  • Migrate inline resource definitions in infrastructure/frontend, infrastructure/api, and infrastructure/database to module calls
  • Update GitHub Actions workflows and the initial setup script with new Terragrunt/Terraform versions, ECR publishing steps, and module-based outputs

Reviewed Changes

Copilot reviewed 46 out of 47 changed files in this pull request and generated 3 comments.

File Description
infrastructure/modules/common/variables.tf Defines target_env but error_message lists values not allowed by the condition
infrastructure/modules/networking/variables.tf Declares availability_zones and security_group_name_suffix yet they’re no longer used
infrastructure/modules/networking/main.tf Hardcodes AZ and SG names, ignoring the declared variables
.github/workflows/.deploy_stack.yml Adds an ecr job to build and push images before other deployment steps

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
@mishraomp mishraomp merged commit ac83a8a into main Jun 28, 2025
9 checks passed
@mishraomp mishraomp deleted the chore/move-to-lza branch June 28, 2025 21:26
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.

3 participants