Skip to content

Latest commit

 

History

History
49 lines (32 loc) · 1.73 KB

File metadata and controls

49 lines (32 loc) · 1.73 KB

cdk-aws-codebuild-github-runners

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.

Related Apps

Prerequisites

  • AWS:
  • GitHub:
    • Must have created a GitHub repository in your personal account.
    • Must have set the GITHUB_TOKEN, GITHUB_OWNER and GITHUB_REPO variables in your local environment.
  • Node.js + npm:

Installation

npx projen install

Deployment

npx projen deploy

Usage

  1. Navigate to https://github.com/<GITHUB_OWNER>/<GITHUB_REPO>/actions/workflows/hello-world.yml.

  2. Click Run workflowRun workflow.

  3. Your workflow will be enqueued and run on an ephemeral EC2 instance managed by AWS CodeBuild.

Cleanup

npx projen destroy

Architecture Diagram

Architecture Diagram