Skip to content

Examples ​

We provide comprehensive examples in the examples/ folder to help you get started quickly:

Getting Started ​

Provider Configuration ​

Compute & Performance ​

  • Compute Options - Configure CPU, memory, and instance types for different providers (also available in Python)
  • Spot Instances - Use spot instances for cost savings across EC2, Fargate, and ECS (also available in Python)
  • Storage Options - Custom EBS storage options for EC2 runners (also available in Python)
  • ECS Scaling - Custom autoscaling group scaling policies for ECS providers (also available in Python)

Security & Access ​

  • IAM Permissions - Grant AWS IAM permissions to runners (also available in Python)
  • Network Access - Configure network access with VPCs and security groups (also available in Python)
  • Access Control - Configure access control for webhook and setup functions (also available in Python)
  • Compliance - Encrypt with your own KMS keys, limit Lambda concurrency, and log API requests (also available in Python)

Customization ​

  • Add Software - Add custom software to runner images (also available in Python)
  • Job Hooks - Run a script before every job using GitHub Actions runner hooks (also available in Python)
  • GPU - GPU support with NVIDIA drivers across EC2, CodeBuild, and ECS (also available in Python)

Enterprise & Monitoring ​

  • GHES - Configure runners for GitHub Enterprise Server (also available in Python)
  • Monitoring - Set up CloudWatch alarms and SNS notifications (also available in Python)

Each example is self-contained with its own dependencies and README. Start with the simple examples and work your way up to more advanced configurations.

Another good and very full example is the integration test.

If you have more to share, please open a PR adding examples to the examples folder.

Released under the Apache-2.0 License.