| mode | Specify here which mode you want to use:
- 'start' - to start a new runner;
- 'stop' - to stop the previously created runner. | yes | — |
| github-token | GitHub Personal Access Token with the 'repo' scope assigned. | yes | — |
| ec2-image-id | EC2 Image Id (AMI). The new runner will be launched from this image. This input is required if you use the 'start' mode. | no | — |
| ec2-instance-type | EC2 Instance Type. This input is required if you use the 'start' mode. | no | — |
| ec2-os | Base OS type of the EC2 image (AMI). The new runner needs to be configured based on OS and architecture:
- 'windows'
- 'linux' | no | linux |
| subnet-id | VPC Subnet Id. The subnet should belong to the same VPC as the specified security group. This input is required if you use the 'start' mode. | no | — |
| security-group-id | EC2 Security Group Id. The security group should belong to the same VPC as the specified subnet. The runner doesn't require any inbound traffic. However, outbound traffic should be allowed. This input is required if you use the 'start' mode. | no | — |
| label | Name of the unique label assigned to the runner. The label is used to remove the runner from GitHub when the runner is not needed anymore. This input is required if you use the 'stop' mode. | no | — |
| number-of-instances | The number of instances to be launched | no | — |
| ec2-instance-id | EC2 Instance Id of the created runner. The id is used to terminate the EC2 instance when the runner is not needed anymore. This input is required if you use the 'stop' mode. | no | — |
| iam-role-name | IAM Role Name to attach to the created EC2 instance. This requires additional permissions on the AWS role used to launch instances. | no | — |
| aws-resource-tags | Tags to attach to the launched EC2 instance and volume. This must be a stringified array of AWS Tag objects, with both Key and Value fields, for example: '[{"Key": "TagKey1", "Value": "TagValue1"}, {"Key": "TagKey2", "Value": "TagValue2"}]' | no | [] |
| runner-home-dir | Directory that contains actions-runner software and scripts. E.g. /home/runner/actions-runner. | no | — |
| aws-key-pair-name | The AWS Key Pair Name to be associated to the instance | no | — |
| pre-runner-script | Specifies bash commands to run before the runner starts. It's useful for installing dependencies with apt-get, yum, dnf, etc. | no | — |