Skip to content

infra: enforce Terraform root vs child module layout - #55

Merged
ORESoftware merged 2 commits into
mainfrom
infra-root-child-layout-20260914
Sep 14, 2026
Merged

ORESoftware merged 2 commits into
mainfrom
infra-root-child-layout-20260914

Conversation

@ORESoftware

Copy link
Copy Markdown
Contributor

Standardizes the existing .ores-infra.toml convention into an explicit Terraform root/child-module contract.

  • modules/* is reusable, environment-agnostic child-module code with no backend/state ownership.
  • environments/<env>/* is the root-module/state boundary and may mix module calls with true environment-only resources.
  • adds a CI structural check for backend/state leakage into child modules and validates the configured modules/environments directory names.
  • documents provider-native repo integration behavior separately from Terraform root-module selection.

This PR does not move existing Terraform resource addresses or state.

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.

1 participant