cargo install cargo-lambdaterraform login
terraform initcd webhook-runners/
cargo lambda build --release --arm64 --output-format zipterraform plan
terraform applyCan be done at an organiation or enterprise level.
-
Create the app, give it a name of "Self-hosted GH Actions Runners" and homepage of
https://github.com/WalletConnect/gh-actions-runners -
Create a webhook:
- URL:
https://<Lambda URL>/v1/webhook - Secret: generate it and set as
webhook_runners_github_webhook_secretvariable - Individual events: Workflow jobs
- URL:
-
Organization permissions:
- Self-hosted runners: read & write
-
Update
webhook_runners_github_app_idand create a private key and set towebhook_runners_github_app_private_key
Must have Read and write access to organization self hosted runners permission
name: Rust stable - build & lint
runs-on: [self-hosted, aws-ecs-16cpu-64mem-40disk-60m]