CDKTF app that deploys a GitHub repository in a personal account, along with a repository webhook that triggers self-hosted runners in AWS CodeBuild when workflow jobs are queued.
Alternative example using a GitHub organization webhook: cdktf-aws-codebuild-github-runners-organization
CDKTF app that deploys a GitHub repository in a personal account, along with a repository webhook that triggers self-hosted runners in AWS CodeBuild when workflow jobs are queued.
- AWS:
- Must have authenticated with Default Credentials in your local environment.
- GitHub:
- Must have set the
GITHUB_TOKEN
variable in your local environment.
- Must have set the
- Node.js + npm:
- Must be installed in your system.
npx projen install
npx projen deploy
-
Navigate to
https://github.com/<GITHUB_OWNER>/sample-repo/actions/workflows/hello-world.yml
. -
Click
Run workflow
➜Run workflow
. -
Your workflow will be enqueued and run on an ephemeral EC2 instance managed by AWS CodeBuild.
npx projen destroy