Ontopix Infrastructure

Cloud infrastructure management for the Ontopix platform — DNS, IAM, ECR, CodeArtifact, and cost monitoring.

Production

Central infrastructure management for the Ontopix platform using Terraform.

What This Repo Manages

This repository provisions foundational cloud infrastructure that all Ontopix services depend on:

ModulePurposeStatus
Route53DNS zones and records for all Ontopix domainsActive
IAMRoles, policies, and GitHub OIDC providerActive
ECROIDC roles for container registry accessActive
CodeArtifactPrivate npm and PyPI package registryActive
Cost AlertsMonthly budget monitoring and email alertsActive
AmplifyAmplify app DNS (deprecated — apps manage their own)Deprecated

Who Should Use These Docs

  • Employees requesting DNS records, IAM roles, or understanding cost alerts
  • AI agents working across Ontopix repos that need infrastructure context
  • New team members onboarding to the Ontopix platform

How to Request Infrastructure Changes

All changes follow the same workflow:

  1. Create a feature branch from master
  2. Edit the relevant Terraform files
  3. Run task infra:plan to preview changes
  4. Open a PR with the plan output
  5. After approval, changes are applied with task infra:apply

See the Guides section for step-by-step instructions for common operations.

Maintaining These Docs

This .context/docs/ directory is published to the Ontopix Documentation Portal as the Infra collection. Changes merged to master trigger an automatic portal rebuild.

Sensitive Data Policy

These docs are public. Never include:

  • AWS account IDs — use {ACCOUNT_ID} placeholder
  • ARNs with account IDs — use ${{ secrets.AWS_ACCOUNT_ID }} or {ACCOUNT_ID}
  • API keys, tokens, or credentials
  • Internal IP addresses or endpoint URLs not meant for public access

Sensitive values that are needed for operations should reference their source (e.g., "see global/variables.tf") instead of being inlined.

Adding or Updating Pages

  1. Follow the existing structure: .context/docs/{section}/{number}.{slug}.md
  2. Every page needs frontmatter with title, description, badge, and navigation.icon
  3. Section index pages are named 1.index.md
  4. Use portal badge presets: Production, New, Draft, Deprecated, Approved, RFC
  5. Run task infra:validate if the docs reference Terraform resources — ensure accuracy against current state