{"id":42137166,"url":"https://github.com/drifthoundhq/infra-demo","last_synced_at":"2026-01-26T16:15:18.915Z","repository":{"id":329594665,"uuid":"1120137770","full_name":"drifthoundhq/infra-demo","owner":"drifthoundhq","description":"GitOps repository for DriftHound demo website.","archived":false,"fork":false,"pushed_at":"2026-01-21T14:51:08.000Z","size":84,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-01-22T02:28:36.336Z","etag":null,"topics":["detection","drift","iac","opentofu","terraform","terragrunt"],"latest_commit_sha":null,"homepage":"https://demo.drifthound.io/","language":"HCL","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/drifthoundhq.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-12-20T15:10:35.000Z","updated_at":"2026-01-21T15:06:24.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/drifthoundhq/infra-demo","commit_stats":null,"previous_names":["treezio/drifthound-infra-demo"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/drifthoundhq/infra-demo","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/drifthoundhq%2Finfra-demo","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/drifthoundhq%2Finfra-demo/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/drifthoundhq%2Finfra-demo/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/drifthoundhq%2Finfra-demo/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/drifthoundhq","download_url":"https://codeload.github.com/drifthoundhq/infra-demo/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/drifthoundhq%2Finfra-demo/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28782165,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-26T13:55:28.044Z","status":"ssl_error","status_checked_at":"2026-01-26T13:55:26.068Z","response_time":59,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["detection","drift","iac","opentofu","terraform","terragrunt"],"created_at":"2026-01-26T16:15:18.241Z","updated_at":"2026-01-26T16:15:18.906Z","avatar_url":"https://github.com/drifthoundhq.png","language":"HCL","funding_links":[],"categories":[],"sub_categories":[],"readme":"# DriftHound Infrastructure Demo\n\nA demo repository showcasing [DriftHound](https://github.com/drifthoundhq/drifthound) infrastructure drift detection with Terragrunt.\n\nThis repository uses Terraform's `random` provider to simulate infrastructure without requiring any cloud accounts.\n\nDemo live site: https://demo.drifthound.io\n\n\u003e [!NOTE]\n\u003e DriftHound demo repository in hosted in [Render](https://render.com/) under free tier subscription. It might take some minutes to boot up as it automatically spins down after inactivity period.\n\n## Repository Structure\n\n```\n├── drifthound.yaml              # DriftHound Action configuration\n├── terragrunt.hcl               # Root Terragrunt config\n├── modules/\n│   └── random-resources/        # Shared Terraform module\n├── stacks/                      # Stack definitions\n│   ├── api-gateway/\n│   ├── auth-service/\n│   ├── billing-platform/\n│   ├── data-pipeline/\n│   └── user-database/\n└── environments/                # Environment deployments\n    ├── production/\n    ├── staging/\n    └── development/\n```\n\n## Projects \u0026 Environments\n\n| Project | Production | Staging | Development |\n|---------|:----------:|:-------:|:-----------:|\n| api-gateway | ✓ | ✓ | - |\n| auth-service | ✓ | - | - |\n| billing-platform | ✓ | ✓ | - |\n| data-pipeline | ✓ | - | - |\n| user-database | ✓ | ✓ | ✓ |\n\n**Total**: 5 projects, 9 environments\n\n## Quick Start\n\n### Prerequisites\n\n- [opentofu](https://opentofu.org/docs/v1.11/intro/install/) \u003e= 1.11.2\n- [Terragrunt](https://terragrunt.gruntwork.io/docs/getting-started/install/) \u003e= 0.96.0\n\n### Initialize All Environments\n\n```bash\n# Initialize all environments at once\ncd environments\nterragrunt run-all init\n\n# Or initialize a specific environment\ncd environments/production/api-gateway\nterragrunt init\n```\n\n### Apply Infrastructure\n\n```bash\n# Apply all environments\ncd environments\nterragrunt run-all apply --terragrunt-non-interactive\n\n# Or apply a specific environment\ncd environments/production/api-gateway\nterragrunt apply\n```\n\n## Running Drift Checks\n\n### Using GitHub Actions\n\n1. Fork this repository\n2. Configure repository secrets:\n   - `DRIFTHOUND_URL` - Your DriftHound instance URL\n   - `DRIFTHOUND_TOKEN` - API token from DriftHound\n3. Run the \"Infrastructure Drift Detection\" workflow manually or enable the schedule\n\n### Running Locally\n\n```bash\n# Set your DriftHound credentials\nexport DRIFTHOUND_TOKEN=your-api-token\nexport DRIFTHOUND_API_URL=https://your-drifthound.example.com\n\n# Run checks on all environments\n./scripts/run-all-checks.sh\n```\n\n## Creating Drift (For Demo)\n\nTo simulate drift, modify the `inputs` in any environment's `terragrunt.hcl` file without applying:\n\n```hcl\n# In environments/production/billing-platform/terragrunt.hcl\n# Change:\ninstance_name = \"billing-prod\"\n# To:\ninstance_name = \"billing-prod-v2\"\n```\n\nThen run a drift check - it will detect the change as drift.\n\n## Configuration\n\n### drifthound.yaml\n\nThe `drifthound.yaml` file defines all scopes for the DriftHound GitHub Action:\n\n```yaml\ndefault_tool: terragrunt\n\nscopes:\n  - name: \"api-gateway-prod\"\n    project: \"api-gateway\"\n    environment: \"production\"\n    directory: \"./environments/production/api-gateway\"\n  # ... more scopes\n```\n\n### GitHub Secrets Required\n\n| Secret | Description |\n|--------|-------------|\n| `DRIFTHOUND_URL` | DriftHound API URL (e.g., `https://drifthound.example.com`) |\n| `DRIFTHOUND_TOKEN` | API token created in DriftHound web UI |\n\n## License\n\nMIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdrifthoundhq%2Finfra-demo","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdrifthoundhq%2Finfra-demo","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdrifthoundhq%2Finfra-demo/lists"}