Skip to content

Commit f5ab6fa

Browse files
committed
Allow providing ec2-instance-count
1 parent 2c4d1dc commit f5ab6fa

File tree

7 files changed

+4748
-1283
lines changed

7 files changed

+4748
-1283
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -202,6 +202,7 @@ Now you're ready to go!
202202
| `security-group-id` | Required if you use the `start` mode. | EC2 Security Group Id. <br><br> The security group should belong to the same VPC as the specified subnet. <br><br> Only the outbound traffic for port 443 should be allowed. No inbound traffic is required. |
203203
| `label` | Required if you use the `stop` mode. | Name of the unique label assigned to the runner. <br><br> The label is provided by the output of the action in the `start` mode. <br><br> The label is used to remove the runner from GitHub when the runner is not needed anymore. |
204204
| `ec2-instance-id` | Required if you use the `stop` mode. | EC2 Instance Id of the created runner. <br><br> The id is provided by the output of the action in the `start` mode. <br><br> The id is used to terminate the EC2 instance when the runner is not needed anymore. |
205+
| `ec2-instance-count` | Not required | EC2 instance count, amount of instances that will be created. Defaults to 1. |
205206
| `iam-role-name` | Optional. Used only with the `start` mode. | IAM role name to attach to the created EC2 runner. <br><br> This allows the runner to have permissions to run additional actions within the AWS account, without having to manage additional GitHub secrets and AWS users. <br><br> Setting this requires additional AWS permissions for the role launching the instance (see above). |
206207
| `aws-resource-tags` | Optional. Used only with the `start` mode. | Specifies tags to add to the EC2 instance and any attached storage. <br><br> This field is a stringified JSON array of tag objects, each containing a `Key` and `Value` field (see example below). <br><br> Setting this requires additional AWS permissions for the role launching the instance (see above). |
207208
| `runner-home-dir` | Optional. Used only with the `start` mode. | Specifies a directory where pre-installed actions-runner software and scripts are located.<br><br> |

action.yml

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ inputs:
2222
required: false
2323
ec2-instance-type:
2424
description: >-
25-
EC2 Instance Type.
25+
EC2 Instance Type.
2626
This input is required if you use the 'start' mode.
2727
required: false
2828
subnet-id:
@@ -32,23 +32,28 @@ inputs:
3232
required: false
3333
security-group-id:
3434
description: >-
35-
EC2 Security Group Id.
35+
EC2 Security Group Id.
3636
The security group should belong to the same VPC as the specified subnet.
3737
The runner doesn't require any inbound traffic. However, outbound traffic should be allowed.
3838
This input is required if you use the 'start' mode.
3939
required: false
4040
label:
4141
description: >-
4242
Name of the unique label assigned to the runner.
43-
The label is used to remove the runner from GitHub when the runner is not needed anymore.
43+
The label is used to remove the runner from GitHub when the runners are not needed anymore.
4444
This input is required if you use the 'stop' mode.
4545
required: false
46-
ec2-instance-id:
46+
ec2-instance-ids:
4747
description: >-
48-
EC2 Instance Id of the created runner.
49-
The id is used to terminate the EC2 instance when the runner is not needed anymore.
48+
EC2 Instance Ids of the created runners.
49+
The ids are used to terminate the EC2 instances when the runners are not needed anymore.
5050
This input is required if you use the 'stop' mode.
5151
required: false
52+
ec2-instance-count:
53+
description: >-
54+
EC2 instance count, amount of instances that will be created. Defaults to 1.
55+
required: false
56+
default: '1'
5257
iam-role-name:
5358
description: >-
5459
IAM Role Name to attach to the created EC2 instance.

0 commit comments

Comments
 (0)