Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/drakon64/github-actions-runner-aws

Ephemeral GitHub Actions runners on AWS EC2
https://github.com/drakon64/github-actions-runner-aws

Last synced: 1 day ago
JSON representation

Ephemeral GitHub Actions runners on AWS EC2

Awesome Lists containing this project

README

        

# github-actions-runner-aws

`github-actions-runner-aws` is a serverless function for running ephemeral GitHub Actions runners in AWS EC2.

For each workflow job in a repository, a webhook is sent to AWS API Gateway. This runs a Lambda function that creates an EC2 instance with the GitHub Actions runner deployed. When the workflow job is completed, another webhook terminates the EC2 instance.

# Building
To compile `github-actions-runner-aws` so that the included OpenTofu configuration can deploy it, run:

`cargo lambda build --release --arm64 --output-format zip`

# Deploying
`github-actions-runner-aws` can be deployed with OpenTofu by running:

```shell
cd terraform
tofu apply
```

# Roadmap
* Automatically terminate stale workflows
* Cleanup code
* Improve error handling
* Remove repository owner hack
* Documentation