garysassano / cdktf-aws-codebuild-gha-runners

CDKTF app that deploys a GitHub repository in a personal account, along with a repository webhook that triggers CodeBuild-hosted GitHub Actions runners when workflow jobs are queued

Repository from Github https://github.comgarysassano/cdktf-aws-codebuild-gha-runnersRepository from Github https://github.comgarysassano/cdktf-aws-codebuild-gha-runners

cdktf-aws-codebuild-gha-runners

CDKTF app that deploys a GitHub repository in a personal account, along with a repository webhook that triggers CodeBuild-hosted GitHub Actions runners when workflow jobs are queued.

Related Apps

Prerequisites

  • AWS:
  • GitHub:
    • Must have set the GITHUB_TOKEN variable in your local environment.
  • Terraform:
  • Node.js + npm:

Installation

npx projen install

Deployment

npx projen deploy

Usage

  1. Access the GitHub Actions workflow by clicking the <GHA_WORKFLOW_URL> from the deployment outputs:

    Outputs:
    GhaWorkflowUrl = <GHA_WORKFLOW_URL>
  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

About

CDKTF app that deploys a GitHub repository in a personal account, along with a repository webhook that triggers CodeBuild-hosted GitHub Actions runners when workflow jobs are queued

License:Apache License 2.0


Languages

Language:TypeScript 100.0%