Skip to content
This repository was archived by the owner on Jan 16, 2025. It is now read-only.

Commit 58aa5ed

Browse files
authored
feat: Enable node16 default (#2074)
* feat: Enable nodejs16.x as default runtime * docs: update terraform docs
1 parent c106c1b commit 58aa5ed

File tree

19 files changed

+60
-61
lines changed

19 files changed

+60
-61
lines changed

Diff for: .ci/Dockerfile

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#syntax=docker/dockerfile:1.2
2-
FROM node:14 as build
2+
FROM node:16 as build
33
WORKDIR /lambda
44
RUN apt-get update \
55
&& apt-get install -y zip \

Diff for: .github/workflows/lambda-runner-binaries-syncer.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ jobs:
1313
runs-on: ubuntu-latest
1414
strategy:
1515
matrix:
16-
node: [14, 16]
16+
node: [16]
1717
container:
1818
image: node:${{ matrix.node }}
1919
defaults:

Diff for: .github/workflows/lambda-runners.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ jobs:
1313
runs-on: ubuntu-latest
1414
strategy:
1515
matrix:
16-
node: [14, 16]
16+
node: [16]
1717
container:
1818
image: node:${{ matrix.node }}
1919
defaults:

Diff for: .github/workflows/lambda-webhook.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ jobs:
1313
runs-on: ubuntu-latest
1414
strategy:
1515
matrix:
16-
node: [14, 16]
16+
node: [16]
1717
container:
1818
image: node:${{ matrix.node }}
1919
defaults:

Diff for: .github/workflows/release.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ jobs:
1111
prepare:
1212
name: Create dist
1313
runs-on: ubuntu-latest
14-
container: node:14
14+
container: node:16
1515
strategy:
1616
matrix:
1717
lambda: ["modules/webhook/lambdas/webhook", "modules/runner-binaries-syncer/lambdas/runner-binaries-syncer", "modules/runners/lambdas/runners"]

Diff for: README.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -360,13 +360,13 @@ In case the setup does not work as intended follow the trace of events:
360360
| Name | Version |
361361
|------|---------|
362362
| <a name="requirement_terraform"></a> [terraform](#requirement\_terraform) | >= 0.14.1 |
363-
| <a name="requirement_aws"></a> [aws](#requirement\_aws) | ~> 4.0 |
363+
| <a name="requirement_aws"></a> [aws](#requirement\_aws) | ~> 4.15 |
364364

365365
## Providers
366366

367367
| Name | Version |
368368
|------|---------|
369-
| <a name="provider_aws"></a> [aws](#provider\_aws) | ~> 4.0 |
369+
| <a name="provider_aws"></a> [aws](#provider\_aws) | ~> 4.15 |
370370
| <a name="provider_random"></a> [random](#provider\_random) | n/a |
371371

372372
## Modules
@@ -428,7 +428,7 @@ In case the setup does not work as intended follow the trace of events:
428428
| <a name="input_kms_key_arn"></a> [kms\_key\_arn](#input\_kms\_key\_arn) | Optional CMK Key ARN to be used for Parameter Store. This key must be in the current account. | `string` | `null` | no |
429429
| <a name="input_lambda_architecture"></a> [lambda\_architecture](#input\_lambda\_architecture) | AWS Lambda architecture. Lambda functions using Graviton processors ('arm64') tend to have better price/performance than 'x86\_64' functions. | `string` | `"x86_64"` | no |
430430
| <a name="input_lambda_principals"></a> [lambda\_principals](#input\_lambda\_principals) | (Optional) add extra principals to the role created for execution of the lambda, e.g. for local testing. | <pre>list(object({<br> type = string<br> identifiers = list(string)<br> }))</pre> | `[]` | no |
431-
| <a name="input_lambda_runtime"></a> [lambda\_runtime](#input\_lambda\_runtime) | AWS Lambda runtime. | `string` | `"nodejs14.x"` | no |
431+
| <a name="input_lambda_runtime"></a> [lambda\_runtime](#input\_lambda\_runtime) | AWS Lambda runtime. | `string` | `"nodejs16.x"` | no |
432432
| <a name="input_lambda_s3_bucket"></a> [lambda\_s3\_bucket](#input\_lambda\_s3\_bucket) | S3 bucket from which to specify lambda functions. This is an alternative to providing local files directly. | `any` | `null` | no |
433433
| <a name="input_lambda_security_group_ids"></a> [lambda\_security\_group\_ids](#input\_lambda\_security\_group\_ids) | List of security group IDs associated with the Lambda function. | `list(string)` | `[]` | no |
434434
| <a name="input_lambda_subnet_ids"></a> [lambda\_subnet\_ids](#input\_lambda\_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)` | `[]` | no |

Diff for: examples/ubuntu/.terraform.lock.hcl

+40-41
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Diff for: modules/runner-binaries-syncer/README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ No modules.
8686
| <a name="input_environment"></a> [environment](#input\_environment) | A name that identifies the environment, used as prefix and for tagging. | `string` | `null` | no |
8787
| <a name="input_lambda_architecture"></a> [lambda\_architecture](#input\_lambda\_architecture) | AWS Lambda architecture. Lambda functions using Graviton processors ('arm64') tend to have better price/performance than 'x86\_64' functions. | `string` | `"x86_64"` | no |
8888
| <a name="input_lambda_principals"></a> [lambda\_principals](#input\_lambda\_principals) | (Optional) add extra principals to the role created for execution of the lambda, e.g. for local testing. | <pre>list(object({<br> type = string<br> identifiers = list(string)<br> }))</pre> | `[]` | no |
89-
| <a name="input_lambda_runtime"></a> [lambda\_runtime](#input\_lambda\_runtime) | AWS Lambda runtime. | `string` | `"nodejs14.x"` | no |
89+
| <a name="input_lambda_runtime"></a> [lambda\_runtime](#input\_lambda\_runtime) | AWS Lambda runtime. | `string` | `"nodejs16.x"` | no |
9090
| <a name="input_lambda_s3_bucket"></a> [lambda\_s3\_bucket](#input\_lambda\_s3\_bucket) | S3 bucket from which to specify lambda functions. This is an alternative to providing local files directly. | `any` | `null` | no |
9191
| <a name="input_lambda_schedule_expression"></a> [lambda\_schedule\_expression](#input\_lambda\_schedule\_expression) | Scheduler expression for action runner binary syncer. | `string` | `"cron(27 * * * ? *)"` | no |
9292
| <a name="input_lambda_security_group_ids"></a> [lambda\_security\_group\_ids](#input\_lambda\_security\_group\_ids) | List of security group IDs associated with the Lambda function. | `list(string)` | `[]` | no |
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
v14
1+
v16

Diff for: modules/runner-binaries-syncer/lambdas/runner-binaries-syncer/template.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ Resources:
33
Syncer:
44
Type: AWS::Serverless::Function
55
Properties:
6-
Runtime: nodejs14.x
6+
Runtime: nodejs16.x
77
Handler: dist/index.handler
88
MemorySize: 256
99
Timeout: 300

Diff for: modules/runner-binaries-syncer/variables.tf

+1-1
Original file line numberDiff line numberDiff line change
@@ -185,7 +185,7 @@ variable "lambda_principals" {
185185
variable "lambda_runtime" {
186186
description = "AWS Lambda runtime."
187187
type = string
188-
default = "nodejs14.x"
188+
default = "nodejs16.x"
189189
}
190190

191191
variable "lambda_architecture" {

Diff for: modules/runners/README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ yarn run dist
144144
| <a name="input_key_name"></a> [key\_name](#input\_key\_name) | Key pair name | `string` | `null` | no |
145145
| <a name="input_kms_key_arn"></a> [kms\_key\_arn](#input\_kms\_key\_arn) | Optional CMK Key ARN to be used for Parameter Store. | `string` | `null` | no |
146146
| <a name="input_lambda_architecture"></a> [lambda\_architecture](#input\_lambda\_architecture) | AWS Lambda architecture. Lambda functions using Graviton processors ('arm64') tend to have better price/performance than 'x86\_64' functions. | `string` | `"x86_64"` | no |
147-
| <a name="input_lambda_runtime"></a> [lambda\_runtime](#input\_lambda\_runtime) | AWS Lambda runtime. | `string` | `"nodejs14.x"` | no |
147+
| <a name="input_lambda_runtime"></a> [lambda\_runtime](#input\_lambda\_runtime) | AWS Lambda runtime. | `string` | `"nodejs16.x"` | no |
148148
| <a name="input_lambda_s3_bucket"></a> [lambda\_s3\_bucket](#input\_lambda\_s3\_bucket) | S3 bucket from which to specify lambda functions. This is an alternative to providing local files directly. | `any` | `null` | no |
149149
| <a name="input_lambda_security_group_ids"></a> [lambda\_security\_group\_ids](#input\_lambda\_security\_group\_ids) | List of security group IDs associated with the Lambda function. | `list(string)` | `[]` | no |
150150
| <a name="input_lambda_subnet_ids"></a> [lambda\_subnet\_ids](#input\_lambda\_subnet\_ids) | List of subnets in which the lambda will be launched, the subnets needs to be subnets in the `vpc_id`. | `list(string)` | `[]` | no |

Diff for: modules/runners/lambdas/runners/.nvmrc

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
v14
1+
v16

Diff for: modules/runners/variables.tf

+1-1
Original file line numberDiff line numberDiff line change
@@ -549,7 +549,7 @@ variable "disable_runner_autoupdate" {
549549
variable "lambda_runtime" {
550550
description = "AWS Lambda runtime."
551551
type = string
552-
default = "nodejs14.x"
552+
default = "nodejs16.x"
553553
}
554554

555555
variable "lambda_architecture" {

Diff for: modules/webhook/README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ No modules.
7979
| <a name="input_github_app_webhook_secret_arn"></a> [github\_app\_webhook\_secret\_arn](#input\_github\_app\_webhook\_secret\_arn) | n/a | `string` | n/a | yes |
8080
| <a name="input_kms_key_arn"></a> [kms\_key\_arn](#input\_kms\_key\_arn) | Optional CMK Key ARN to be used for Parameter Store. | `string` | `null` | no |
8181
| <a name="input_lambda_architecture"></a> [lambda\_architecture](#input\_lambda\_architecture) | AWS Lambda architecture. Lambda functions using Graviton processors ('arm64') tend to have better price/performance than 'x86\_64' functions. | `string` | `"x86_64"` | no |
82-
| <a name="input_lambda_runtime"></a> [lambda\_runtime](#input\_lambda\_runtime) | AWS Lambda runtime. | `string` | `"nodejs14.x"` | no |
82+
| <a name="input_lambda_runtime"></a> [lambda\_runtime](#input\_lambda\_runtime) | AWS Lambda runtime. | `string` | `"nodejs16.x"` | no |
8383
| <a name="input_lambda_s3_bucket"></a> [lambda\_s3\_bucket](#input\_lambda\_s3\_bucket) | S3 bucket from which to specify lambda functions. This is an alternative to providing local files directly. | `any` | `null` | no |
8484
| <a name="input_lambda_timeout"></a> [lambda\_timeout](#input\_lambda\_timeout) | Time out of the lambda in seconds. | `number` | `10` | no |
8585
| <a name="input_lambda_zip"></a> [lambda\_zip](#input\_lambda\_zip) | File location of the lambda zip file. | `string` | `null` | no |

Diff for: modules/webhook/lambdas/webhook/.nvmrc

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
v14
1+
v16

Diff for: modules/webhook/variables.tf

+1-1
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,7 @@ variable "sqs_build_queue_fifo" {
166166
variable "lambda_runtime" {
167167
description = "AWS Lambda runtime."
168168
type = string
169-
default = "nodejs14.x"
169+
default = "nodejs16.x"
170170
}
171171

172172
variable "lambda_architecture" {

Diff for: variables.tf

+1-1
Original file line numberDiff line numberDiff line change
@@ -645,7 +645,7 @@ variable "disable_runner_autoupdate" {
645645
variable "lambda_runtime" {
646646
description = "AWS Lambda runtime."
647647
type = string
648-
default = "nodejs14.x"
648+
default = "nodejs16.x"
649649
}
650650

651651
variable "lambda_architecture" {

Diff for: versions.tf

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ terraform {
44
required_providers {
55
aws = {
66
source = "hashicorp/aws"
7-
version = "~> 4.0"
7+
version = "~> 4.15"
88
}
99
}
1010
}

0 commit comments

Comments
 (0)