{"id":22351459,"url":"https://github.com/garysassano/cdk-aws-codebuild-github-runners","last_synced_at":"2025-03-26T12:09:10.090Z","repository":{"id":245719504,"uuid":"804842252","full_name":"garysassano/cdk-aws-codebuild-github-runners","owner":"garysassano","description":"CDK app that, given an existing GitHub repository, attaches a repository webhook that triggers self-hosted runners in AWS CodeBuild when workflow jobs are queued","archived":false,"fork":false,"pushed_at":"2025-03-01T04:16:39.000Z","size":118,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-01T05:19:55.886Z","etag":null,"topics":["aws","aws-cdk","aws-codebuild","codebuild","github-actions","github-runners","github-webhooks","self-hosted-runners","webhooks"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","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/garysassano.png","metadata":{"files":{"readme":"README.md","changelog":null,"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}},"created_at":"2024-05-23T11:31:48.000Z","updated_at":"2025-03-01T04:16:43.000Z","dependencies_parsed_at":"2024-06-23T17:35:52.296Z","dependency_job_id":"1b293118-1faa-42ed-86be-c9cd5078b7ae","html_url":"https://github.com/garysassano/cdk-aws-codebuild-github-runners","commit_stats":null,"previous_names":["garysassano/cdk-aws-codebuild-github-runners"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/garysassano%2Fcdk-aws-codebuild-github-runners","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/garysassano%2Fcdk-aws-codebuild-github-runners/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/garysassano%2Fcdk-aws-codebuild-github-runners/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/garysassano%2Fcdk-aws-codebuild-github-runners/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/garysassano","download_url":"https://codeload.github.com/garysassano/cdk-aws-codebuild-github-runners/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245650493,"owners_count":20650105,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":["aws","aws-cdk","aws-codebuild","codebuild","github-actions","github-runners","github-webhooks","self-hosted-runners","webhooks"],"created_at":"2024-12-04T12:14:02.119Z","updated_at":"2025-03-26T12:09:10.070Z","avatar_url":"https://github.com/garysassano.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# cdk-aws-codebuild-github-runners\n\nCDK app that, given an existing GitHub repository, attaches a repository webhook that triggers [self-hosted runners in AWS CodeBuild](https://docs.aws.amazon.com/codebuild/latest/userguide/action-runner.html) when workflow jobs are queued.\n\n### Related Apps\n\n- [cdktf-aws-codebuild-github-runners](https://github.com/garysassano/cdktf-aws-codebuild-github-runners) - Built with CDKTF instead of AWS CDK.\n- [cdktf-aws-codebuild-github-runners-organization](https://github.com/garysassano/cdktf-aws-codebuild-github-runners-organization) - Built with CDKTF instead of AWS CDK; uses a GitHub organization webhook instead of repository webhook.\n\n## Prerequisites\n\n- **_AWS:_**\n  - Must have authenticated with [Default Credentials](https://docs.aws.amazon.com/cdk/v2/guide/cli.html#cli_auth) in your local environment.\n  - Must have completed the [CDK bootstrapping](https://docs.aws.amazon.com/cdk/v2/guide/bootstrapping.html) for the target AWS environment.\n- **_GitHub:_**\n  - Must have created a GitHub repository in your personal account.\n  - Must have set the `GITHUB_TOKEN`, `GITHUB_OWNER` and `GITHUB_REPO` variables in your local environment.\n- **_Node.js + npm:_**\n  - Must be [installed](https://docs.npmjs.com/downloading-and-installing-node-js-and-npm) in your system.\n\n## Installation\n\n```sh\nnpx projen install\n```\n\n## Deployment\n\n```sh\nnpx projen deploy\n```\n\n## Usage\n\n1. Navigate to `https://github.com/\u003cGITHUB_OWNER\u003e/\u003cGITHUB_REPO\u003e/actions/workflows/hello-world.yml`.\n\n2. Click `Run workflow` ➜ `Run workflow`.\n\n3. Your workflow will be enqueued and run on an ephemeral EC2 instance managed by AWS CodeBuild.\n\n## Cleanup\n\n```sh\nnpx projen destroy\n```\n\n## Architecture Diagram\n\n![Architecture Diagram](./src/assets/arch.svg)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgarysassano%2Fcdk-aws-codebuild-github-runners","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgarysassano%2Fcdk-aws-codebuild-github-runners","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgarysassano%2Fcdk-aws-codebuild-github-runners/lists"}