Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Terraform Directory Structure Refactoring #189

Open
JinLee794 opened this issue Oct 10, 2023 · 0 comments
Open

Terraform Directory Structure Refactoring #189

JinLee794 opened this issue Oct 10, 2023 · 0 comments
Assignees
Labels

Comments

@JinLee794
Copy link
Contributor

JinLee794 commented Oct 10, 2023

Refactor the Terraform deployment scenario such that the scenario-specific deployments can be managed through feature flags provided by .tfvars files.

Current Structure:

|-- scenarios/
|   |-- secure-baseline-ase/terraform/
|   |   |-- Parameters/uat.tfvars
|   |   |-- main.tf
|   |   `-- ...
|   `-- secure-baseline-multitenant/terraform`/
|       |-- Hub/
|       |   |-- Parameters/uat.tfvars
|       |   |-- main.tf
|       |   `-- ...
|       `-- Spoke/
|           |-- Parameters/uat.tfvars
|           |-- main.tf
|           `-- ... 

Proposed Structure:

|-- terraform/
|   |-- ase/
|   |   |-- main.tf
|   |   `-- ...
|   |-- hub/
|   |   |-- main.tf
|   |   `-- ...
|   |-- spoke/
|   |   |-- main.tf
|   |   `-- ...
|   |-- scenarios/
|   |   |-- ase.tfvars
|   |   |-- ase-multi-tenant.tfvars
|   |   `-- multi-tenant.tfvars
|   |-- main.tf -> references the hub/ spoke/ ase/ deployments via flags
|   `-- ...
|-- bicep/
|   `-- ...
`-- shared/
    |-- modules/
    |   |-- terraform/
    |   `-- bicep/
    `-- scripts/

Main benefit of this structure is that we can reuse the existing deployment files, but consolidate everything under a single deployment - which helps ensure consistent deployments with less repeated work.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Development

No branches or pull requests

1 participant