{"id":51410823,"url":"https://github.com/launchbynttdata/platform-eks-cluster-for-ado-agents","last_synced_at":"2026-07-04T14:32:31.689Z","repository":{"id":338306930,"uuid":"1077614189","full_name":"launchbynttdata/platform-eks-cluster-for-ado-agents","owner":"launchbynttdata","description":null,"archived":false,"fork":false,"pushed_at":"2026-06-25T14:01:45.000Z","size":522,"stargazers_count":0,"open_issues_count":1,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-06-25T16:04:38.976Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"HCL","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/launchbynttdata.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","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-10-16T13:48:16.000Z","updated_at":"2026-06-22T17:40:00.000Z","dependencies_parsed_at":null,"dependency_job_id":"2ec9cf31-1f35-4a08-8d72-a6912467889a","html_url":"https://github.com/launchbynttdata/platform-eks-cluster-for-ado-agents","commit_stats":null,"previous_names":["launchbynttdata/platform-eks-cluster-for-ado-agents"],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/launchbynttdata/platform-eks-cluster-for-ado-agents","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/launchbynttdata%2Fplatform-eks-cluster-for-ado-agents","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/launchbynttdata%2Fplatform-eks-cluster-for-ado-agents/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/launchbynttdata%2Fplatform-eks-cluster-for-ado-agents/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/launchbynttdata%2Fplatform-eks-cluster-for-ado-agents/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/launchbynttdata","download_url":"https://codeload.github.com/launchbynttdata/platform-eks-cluster-for-ado-agents/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/launchbynttdata%2Fplatform-eks-cluster-for-ado-agents/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":35125718,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-07-04T02:00:05.987Z","response_time":113,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":[],"created_at":"2026-07-04T14:32:29.965Z","updated_at":"2026-07-04T14:32:31.676Z","avatar_url":"https://github.com/launchbynttdata.png","language":"HCL","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Platform NTT ADO Cluster Infrastructure as Code\n\nA Terraform-based Infrastructure as Code (IaC) solution for deploying an AWS EKS cluster with Azure DevOps (ADO) self-hosted agents. This repository provides a complete, production-ready platform for running containerized Azure DevOps agents in AWS using Kubernetes with KEDA autoscaling.\n\n## High-Level Overview\n\nThis repository provides a comprehensive solution for deploying Azure DevOps build agents on AWS infrastructure using:\n\n- **AWS EKS Cluster**: Managed Kubernetes cluster with Fargate and optional EC2 node groups\n- **Azure DevOps Agents**: Containerized ADO agents with role-based access controls\n- **KEDA Autoscaling**: Event-driven autoscaling based on Azure DevOps pipeline queue metrics\n- **External Secrets**: Automatic secret synchronization from AWS Secrets Manager to Kubernetes\n- **Multi-Role Architecture**: Separate IAM roles for different agent workloads (dev-build, iac, custom)\n- **Secure Networking**: VPC endpoints, private subnets, encrypted communications\n- **Layered Design**: Three-layer architecture (base → middleware → application) for independent lifecycle management\n\n## Architecture\n\nThe canonical deployment uses the **infrastructure-layered** directory with a three-layer Terragrunt-based architecture:\n\n- **Base Layer**: EKS cluster, VPC, IAM, KMS\n- **Middleware Layer**: KEDA, External Secrets Operator, buildkitd, cluster autoscaler\n- **Application Layer**: ECR repositories, secrets, ADO agent deployments via Helm\n\nAll deployment is orchestrated by [infrastructure-layered/deploy.sh](infrastructure-layered/deploy.sh).\n\n## Prerequisites\n\n### Required Tools\n\n| Tool | Version | Purpose |\n|------|---------|---------|\n| terraform | 1.12.2 | IaC |\n| terragrunt | 0.81.7 | Layer orchestration |\n| helm | 3.19.0 | Kubernetes charts |\n| kubectl | 1.34.1 | Cluster access |\n| aws (CLI) | v2 | AWS operations |\n| jq | latest | JSON parsing (used by deploy.sh) |\n\nOptional tools (in [.tool-versions](.tool-versions)): tflint, checkov, python, uv.\n\nThis repository uses [.tool-versions](.tool-versions) for version pinning. We recommend [mise](https://mise.jdx.dev/) for managing tool versions. See the [mise installation documentation](https://mise.jdx.dev/installing-mise.html) for setup. After installing mise, run `mise install` in the repository root to install tools from .tool-versions. Note: `aws` and `jq` are not in .tool-versions; install them via your system package manager or add them to .tool-versions if mise supports them for your platform.\n\n### Additional Prerequisites\n\n- **AWS account** with appropriate permissions (EKS, IAM, S3, Secrets Manager, ECR, KMS, etc.)\n- **S3 bucket** for Terraform state (Terraform \u003e= 1.10 uses native S3 lockfiles; no DynamoDB table required)\n- **Azure DevOps** organization, Personal Access Token (PAT), and agent pool(s)\n- **VPC and subnets** (or use defaults from configuration)\n\n## Getting Started\n\n1. **Clone and navigate** to the infrastructure directory:\n   ```bash\n   git clone \u003crepository-url\u003e\n   cd platform-eks-cluster-for-ado-agents/infrastructure-layered\n   ```\n\n2. **Configure** by copying the sample config and setting environment variables:\n   ```bash\n   cp env.sample.hcl env.hcl\n   # Edit env.hcl with your VPC, cluster, and ADO settings\n   export TF_STATE_BUCKET='your-terraform-state-bucket'\n   ```\n\n3. **Deploy** using the orchestration script:\n   ```bash\n   ./deploy.sh deploy --update-ado-secret\n   ```\n\n## Documentation\n\nFull documentation is in the [documentation hub](docs/README.md):\n\n- [Operations guide](docs/deployment/OPERATIONS.md) - deploy, configure, troubleshoot\n- [Terragrunt quickstart](docs/terragrunt/TERRAGRUNT_QUICKSTART.md) - first-time setup\n- [Configuration reference](docs/terragrunt/TERRAGRUNT_CONFIGURATION_REFERENCE.md) - `env.hcl` variables\n- [CHANGELOG](CHANGELOG.md) - release history\n\n## Known Issues\n\n- Fargate profiles should be deployed as iterative list instead of singleton list\n- Many IAM policies exist as \"inline\" that should be refactored to externally managed + attachments\n\n## Contributing\n\n1. Follow the existing modular architecture\n2. Test changes in non-production environments\n3. Run security scans with Checkov where applicable\n4. Update documentation for any new features\n5. Use semantic versioning for releases\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flaunchbynttdata%2Fplatform-eks-cluster-for-ado-agents","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flaunchbynttdata%2Fplatform-eks-cluster-for-ado-agents","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flaunchbynttdata%2Fplatform-eks-cluster-for-ado-agents/lists"}