cds-snc / notification-planning-core

Project planning for GC Notify Core Team
0 stars 0 forks source link

Reduce Redundant Environment Code for Terragrunt #414

Closed P0NDER0SA closed 1 month ago

P0NDER0SA commented 2 months ago

Description

As a Dev, I want to streamline Terragrunt Code so that we can make our codebase easier to manage and maintain

WHY are we building?

More efficient/smaller code base, hence easier maintenance.

WHAT are we building?

Consolidate the Terragrunt hcl files so that these are sourced from the Terraform tfvars files instead. We would end up with only one Terragrunt hcl file per component instead of one per component and per environment, reducing the combinatorial factor that produces too many artifacts at current time. Afterward, the TFVars/Variables are going to be centralized to 1Password for Terraform Repository.

VALUE created by our solution

Acceptance Criteria

jimleroyer commented 1 month ago

The work in #410 along with some additional research makes this issue obsolete. We are reducing the code duplication but also, we will still per-environment folders as per the best practices.