Skip to content

CDKTF app that deploys a GitHub repository within an organization, along with an organization webhook that triggers self-hosted runners in AWS CodeBuild when workflow jobs are queued

License

Notifications You must be signed in to change notification settings

garysassano/cdktf-aws-codebuild-github-runners-organization

Repository files navigation

cdktf-aws-codebuild-github-runners-organization

CDKTF app that deploys a GitHub repository within an organization, along with an organization webhook that triggers self-hosted runners in AWS CodeBuild when workflow jobs are queued.

Alternative example using a GitHub repository webhook: cdktf-aws-codebuild-github-runners

Prerequisites

  • AWS:
  • GitHub:
    • Must have set the GITHUB_TOKEN and GITHUB_OWNER 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>/sample-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

About

CDKTF app that deploys a GitHub repository within an organization, along with an organization webhook that triggers self-hosted runners in AWS CodeBuild when workflow jobs are queued

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published