Skip to content

Conversation

einalien
Copy link
Owner

@einalien einalien commented Nov 1, 2026 •

Summary

Extend the infrastructure configuration to support STAGE and PROD environments, each containing independently managed network and frontend stacks.

Both environments reuse the existing OpenTofu modules and maintain separate Kubernetes-backed state.

Changes

  • Add STAGE and PROD network stacks with dedicated subnets, routers, and router interfaces.
  • Add STAGE and PROD frontend stacks with configurable VM counts, security group rules, floating IPs, and NGINX provisioning through cloud-init.
  • Configure frontend stacks to retrieve network information through environment-specific remote-state outputs.
  • Include example configuration files and provider dependency lock files for all four new stacks.
  • Extend GitHub Actions CI to validate STAGE and PROD configurations.
  • Include the new configurations in existing TFLint and Checkov scans.

Validation

  • tofu fmt -check -recursive passes.
  • tofu validate passes for all seven root configurations.
  • TFLint completes successfully.
  • Checkov completes successfully.
  • GitHub Actions CI passes on the self-hosted runner.

Notes

STAGE and PROD configurations have not been deployed yet. Deployment will be automated through GitHub Actions, with automatic promotion from TEST to STAGE and manual approval before PROD.

Each environment maintains separate Kubernetes remote state for its network and frontend stacks.

@einalien einalien added the enhancement New feature or request label Nov 1, 2026
@einalien einalien self-assigned this Nov 1, 2026
@einalien einalien merged commit 3091ede into main Nov 1, 2026
1 check passed
@einalien einalien deleted the feat/stage-prod-environments branch November 1, 2026 13:54
Sign in to join this conversation on GitHub.
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant