Skip to content

Commit d920cf2

Browse files
committed
cleanup
1 parent 8915b5a commit d920cf2

File tree

2 files changed

+33
-6
lines changed

2 files changed

+33
-6
lines changed

README.md

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -136,8 +136,41 @@ Go back to the GitHub App and update the following settings.
136136
3. Provide the webhook secret.
137137
4. Enable the `Check run` event for the webhook.
138138

139+
139140
## Examples
140141

142+
## Inputs
143+
144+
| Name | Description | Type | Default | Required |
145+
| ----------------------------------------- | ------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------- | :------: |
146+
| aws\_region | AWS region. | `string` | n/a | yes |
147+
| enable\_organization\_runners | n/a | `bool` | n/a | yes |
148+
| environment | A name that identifies the environment, used as prefix and for tagging. | `string` | n/a | yes |
149+
| github\_app | GitHub app parameters, see your github aapp. Ensure the key is base64 encoded. | <pre>object({<br> key_base64 = string<br> id = string<br> client_id = string<br> client_secret = string<br> webhook_secret = string<br> })</pre> | n/a | yes |
150+
| subnet\_ids | List of subnets in which the action runners will be launched, the subnets needs to be subnets in the `vpc_id`. | `list(string)` | n/a | yes |
151+
| vpc\_id | The VPC for security groups of the action runners. | `string` | n/a | yes |
152+
| minimum\_running\_time\_in\_minutes | The time an ec2 action runner should be running at minium before terminated if non busy. | `number` | `5` | no |
153+
| runner\_binaries\_syncer\_lambda\_timeout | Time out of the binaries sync lambda in seconds. | `number` | `300` | no |
154+
| runner\_binaries\_syncer\_lambda\_zip | File location of the binaries sync lambda zip file. | `string` | `null` | no |
155+
| runner\_extra\_labels | Extra labels for the runners (GitHub). Separate each label by a comma | `string` | `""` | no |
156+
| runners\_lambda\_zip | File location of the lambda zip file for scaling runners. | `string` | `null` | no |
157+
| runners\_scale\_down\_lambda\_timeout | Time out for the scale up lambda in seconds. | `number` | `60` | no |
158+
| runners\_scale\_up\_lambda\_timeout | Time out for the scale down lambda in seconds. | `number` | `60` | no |
159+
| scale\_down\_schedule\_expression | Scheduler expression to check every x for scale down. | `string` | `"cron(*/5 * * * ? *)"` | no |
160+
| tags | Map of tags that will be added to created resources. By default resources will be tagged with name and environment. | `map(string)` | `{}` | no |
161+
| webhook\_lambda\_timeout | Time out of the webhook lambda in seconds. | `number` | `10` | no |
162+
| webhook\_lambda\_zip | File location of the wehbook lambda zip file. | `string` | `null` | no |
163+
164+
## Outputs
165+
166+
| Name | Description |
167+
| ---------------- | ----------- |
168+
| binaries\_syncer | n/a |
169+
| runners | n/a |
170+
| webhook | n/a |
171+
172+
173+
141174
## Philips Forest
142175

143176
This module is part of the Philips Forest.

examples/default/main.tf

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,16 +3,10 @@ locals {
33
aws_region = "eu-west-1"
44
}
55

6-
76
resource "random_password" "random" {
87
length = 32
98
}
109

11-
12-
13-
14-
15-
1610
module "runners" {
1711
source = "../../"
1812

0 commit comments

Comments
 (0)