Skip to content

feat(terraform): Structure Code for Multiple Environments #44

@carlagesa

Description

@carlagesa

To ensure stability and safe testing, our infrastructure should be replicated across different environments (e.g., dev, prod). We need to structure our Terraform project to support this. A common approach is to use separate directories or workspaces for each environment, which allows us to manage their configurations and state independently while reusing the same core modules.

Acceptance Criteria:

  • A directory structure is created to manage at least two environments (e.g., environments/dev and environments/prod).
  • Each environment has its own main.tf and .tfvars file to manage environment-specific configurations.
  • The CI/CD pipeline is updated to allow deployments to a specific environment.

Metadata

Metadata

Assignees

No one assigned

    Labels

    🌟enhancementImprovements or optimizations to existing functionality.🔄 needs updateFor issues that require additional changes or fixes.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions