Skip to content

Commit 09505b8

Browse files
npalmbdruth
andauthored
chor: Fix/release version (#112)
* Add support for ARM64 runners * Support Graviton (a1) and Graviton2 (*6g*) * Address TF format issues. * Address additional TF format error. * Add test case for arm64 release asset. * Add documentation changes for ARM64. * Make ARM/ICU patch conditional in user_data.sh. * Run pre-commit hooks. * Release 0.3.0 * update release to 0.3.0 Co-authored-by: Brice Ruth <[email protected]>
1 parent f63dede commit 09505b8

File tree

4 files changed

+55
-53
lines changed

4 files changed

+55
-53
lines changed

README.md

Lines changed: 39 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -105,15 +105,15 @@ module "lambdas" {
105105
lambdas = [
106106
{
107107
name = "webhook"
108-
tag = "v0.2.0"
108+
tag = "v0.3.0"
109109
},
110110
{
111111
name = "runners"
112-
tag = "v0.2.0"
112+
tag = "v0.3.0"
113113
},
114114
{
115115
name = "runner-binaries-syncer"
116-
tag = "v0.2.0"
116+
tag = "v0.3.0"
117117
}
118118
]
119119
}
@@ -242,46 +242,47 @@ When configuring `runners`
242242
- _ami_filter_ - set to `["amzn2-ami-hvm-2*-arm64-gp2"]`, defaults to `["amzn2-ami-hvm-2.*-x86_64-ebs"]`
243243

244244
<!-- BEGINNING OF PRE-COMMIT-TERRAFORM DOCS HOOK -->
245+
245246
## Inputs
246247

247-
| Name | Description | Type | Default | Required |
248-
|------|-------------|:----:|:-----:|:-----:|
249-
| aws\_region | AWS region. | string | n/a | yes |
250-
| enable\_organization\_runners | | bool | n/a | yes |
251-
| encrypt\_secrets | Encrypt secret variables for lambda's such as secrets and private keys. | bool | `"true"` | no |
252-
| environment | A name that identifies the environment, used as prefix and for tagging. | string | n/a | yes |
253-
| github\_app | GitHub app parameters, see your github app. Ensure the key is base64 encoded. | object | n/a | yes |
254-
| instance\_profile\_path | The path that will be added to the instance\_profile, if not set the environment name will be used. | string | `"null"` | no |
255-
| instance\_type | Instance type for the action runner. | string | `"m5.large"` | no |
256-
| kms\_key\_id | Custom KMS key to encrypted lambda secrets, if not provided and `encrypt\_secrets` = `true` a KMS key will be created by the module. Secrets will be encrypted with a context `Environment = var.environment`. | string | `"null"` | no |
257-
| manage\_kms\_key | Let the module manage the KMS key. | bool | `"true"` | no |
258-
| minimum\_running\_time\_in\_minutes | The time an ec2 action runner should be running at minimum before terminated if non busy. | number | `"5"` | no |
259-
| role\_path | The path that will be added to role path for created roles, if not set the environment name will be used. | string | `"null"` | no |
260-
| role\_permissions\_boundary | Permissions boundary that will be added to the created roles. | string | `"null"` | no |
261-
| runner\_as\_root | Run the action runner under the root user. | bool | `"false"` | no |
262-
| runner\_binaries\_syncer\_lambda\_timeout | Time out of the binaries sync lambda in seconds. | number | `"300"` | no |
263-
| runner\_binaries\_syncer\_lambda\_zip | File location of the binaries sync lambda zip file. | string | `"null"` | no |
264-
| runner\_extra\_labels | Extra labels for the runners \(GitHub\). Separate each label by a comma | string | `""` | no |
265-
| runners\_lambda\_zip | File location of the lambda zip file for scaling runners. | string | `"null"` | no |
266-
| runners\_maximum\_count | The maximum number of runners that will be created. | number | `"3"` | no |
267-
| runners\_scale\_down\_lambda\_timeout | Time out for the scale up lambda in seconds. | number | `"60"` | no |
268-
| runners\_scale\_up\_lambda\_timeout | Time out for the scale down lambda in seconds. | number | `"60"` | no |
269-
| scale\_down\_schedule\_expression | Scheduler expression to check every x for scale down. | string | `"cron(*/5 * * * ? *)"` | no |
270-
| 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 |
271-
| tags | Map of tags that will be added to created resources. By default resources will be tagged with name and environment. | map(string) | `{}` | no |
272-
| userdata\_post\_install | Script to be ran after the GitHub Actions runner is installed on the EC2 instances | string | `""` | no |
273-
| userdata\_pre\_install | Script to be ran before the GitHub Actions runner is installed on the EC2 instances | string | `""` | no |
274-
| vpc\_id | The VPC for security groups of the action runners. | string | n/a | yes |
275-
| webhook\_lambda\_timeout | Time out of the webhook lambda in seconds. | number | `"10"` | no |
276-
| webhook\_lambda\_zip | File location of the webhook lambda zip file. | string | `"null"` | no |
248+
| Name | Description | Type | Default | Required |
249+
| ------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | :----------: | :---------------------: | :------: |
250+
| aws_region | AWS region. | string | n/a | yes |
251+
| enable_organization_runners | | bool | n/a | yes |
252+
| encrypt_secrets | Encrypt secret variables for lambda's such as secrets and private keys. | bool | `"true"` | no |
253+
| environment | A name that identifies the environment, used as prefix and for tagging. | string | n/a | yes |
254+
| github_app | GitHub app parameters, see your github app. Ensure the key is base64 encoded. | object | n/a | yes |
255+
| instance_profile_path | The path that will be added to the instance_profile, if not set the environment name will be used. | string | `"null"` | no |
256+
| instance_type | Instance type for the action runner. | string | `"m5.large"` | no |
257+
| kms_key_id | Custom KMS key to encrypted lambda secrets, if not provided and `encrypt\_secrets` = `true` a KMS key will be created by the module. Secrets will be encrypted with a context `Environment = var.environment`. | string | `"null"` | no |
258+
| manage_kms_key | Let the module manage the KMS key. | bool | `"true"` | no |
259+
| minimum_running_time_in_minutes | The time an ec2 action runner should be running at minimum before terminated if non busy. | number | `"5"` | no |
260+
| role_path | The path that will be added to role path for created roles, if not set the environment name will be used. | string | `"null"` | no |
261+
| role_permissions_boundary | Permissions boundary that will be added to the created roles. | string | `"null"` | no |
262+
| runner_as_root | Run the action runner under the root user. | bool | `"false"` | no |
263+
| runner_binaries_syncer_lambda_timeout | Time out of the binaries sync lambda in seconds. | number | `"300"` | no |
264+
| runner_binaries_syncer_lambda_zip | File location of the binaries sync lambda zip file. | string | `"null"` | no |
265+
| runner_extra_labels | Extra labels for the runners \(GitHub\). Separate each label by a comma | string | `""` | no |
266+
| runners_lambda_zip | File location of the lambda zip file for scaling runners. | string | `"null"` | no |
267+
| runners_maximum_count | The maximum number of runners that will be created. | number | `"3"` | no |
268+
| runners_scale_down_lambda_timeout | Time out for the scale up lambda in seconds. | number | `"60"` | no |
269+
| runners_scale_up_lambda_timeout | Time out for the scale down lambda in seconds. | number | `"60"` | no |
270+
| scale_down_schedule_expression | Scheduler expression to check every x for scale down. | string | `"cron(*/5 * * * ? *)"` | no |
271+
| 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 |
272+
| tags | Map of tags that will be added to created resources. By default resources will be tagged with name and environment. | map(string) | `{}` | no |
273+
| userdata_post_install | Script to be ran after the GitHub Actions runner is installed on the EC2 instances | string | `""` | no |
274+
| userdata_pre_install | Script to be ran before the GitHub Actions runner is installed on the EC2 instances | string | `""` | no |
275+
| vpc_id | The VPC for security groups of the action runners. | string | n/a | yes |
276+
| webhook_lambda_timeout | Time out of the webhook lambda in seconds. | number | `"10"` | no |
277+
| webhook_lambda_zip | File location of the webhook lambda zip file. | string | `"null"` | no |
277278

278279
## Outputs
279280

280-
| Name | Description |
281-
|------|-------------|
282-
| binaries\_syncer | |
283-
| runners | |
284-
| webhook | |
281+
| Name | Description |
282+
| --------------- | ----------- |
283+
| binaries_syncer | |
284+
| runners | |
285+
| webhook | |
285286

286287
<!-- END OF PRE-COMMIT-TERRAFORM DOCS HOOK -->
287288

examples/default/lambdas-download/main.tf

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,15 +3,15 @@ module "lambdas" {
33
lambdas = [
44
{
55
name = "webhook"
6-
tag = "v0.2.0"
6+
tag = "v0.3.0"
77
},
88
{
99
name = "runners"
10-
tag = "v0.2.0"
10+
tag = "v0.3.0"
1111
},
1212
{
1313
name = "runner-binaries-syncer"
14-
tag = "v0.2.0"
14+
tag = "v0.3.0"
1515
}
1616
]
1717
}

examples/permissions-boundary/lambdas-download/main.tf

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,15 +3,15 @@ module "lambdas" {
33
lambdas = [
44
{
55
name = "webhook"
6-
tag = "v0.2.0"
6+
tag = "v0.3.0"
77
},
88
{
99
name = "runners"
10-
tag = "v0.2.0"
10+
tag = "v0.3.0"
1111
},
1212
{
1313
name = "runner-binaries-syncer"
14-
tag = "v0.2.0"
14+
tag = "v0.3.0"
1515
}
1616
]
1717
}

modules/download-lambda/README.md

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -10,32 +10,33 @@ module "lambdas" {
1010
lambdas = [
1111
{
1212
name = "webhook"
13-
tag = "v0.2.0"
13+
tag = "v0.3.0"
1414
},
1515
{
1616
name = "runners"
17-
tag = "v0.2.0"
17+
tag = "v0.3.0"
1818
},
1919
{
2020
name = "runner-binaries-syncer"
21-
tag = "v0.2.0"
21+
tag = "v0.3.0"
2222
}
2323
]
2424
}
2525
```
2626

2727
<!-- BEGINNING OF PRE-COMMIT-TERRAFORM DOCS HOOK -->
28+
2829
## Inputs
2930

30-
| Name | Description | Type | Default | Required |
31-
|------|-------------|:----:|:-----:|:-----:|
32-
| lambdas | Name and tag for lambdas to download. | object | n/a | yes |
31+
| Name | Description | Type | Default | Required |
32+
| ------- | ------------------------------------- | :----: | :-----: | :------: |
33+
| lambdas | Name and tag for lambdas to download. | object | n/a | yes |
3334

3435
## Outputs
3536

36-
| Name | Description |
37-
|------|-------------|
38-
| files | |
37+
| Name | Description |
38+
| ----- | ----------- |
39+
| files | |
3940

4041
<!-- END OF PRE-COMMIT-TERRAFORM DOCS HOOK -->
4142

0 commit comments

Comments
 (0)