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

Commit c5d4693

Browse files
npalmphilips-labs-pr|bot
and
philips-labs-pr|bot
authoredDec 20, 2024
feat!: Upgrade Node to 22 (LTS) (#4318)
## Description This PR updates the default node version for the Lambdas to 22x. In case needed the runtime can be overwritten via the variables. - Bump minimal required aws terraform provider - Update modules lock files - Update node to default 22 --------- Co-authored-by: philips-labs-pr|bot <philips-labs-pr[bot]@users.noreply.github.com>
1 parent e93d15f commit c5d4693

36 files changed

+374
-352
lines changed
 

‎.github/workflows/lambda.yml

+3-1
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,19 @@
11
name: Build lambdas
2+
23
on:
34
pull_request:
45
branches:
56
- main
67
paths:
78
- 'lambdas/**'
9+
- '.github/workflows/lambda.yml'
810

911
jobs:
1012
build:
1113
runs-on: ubuntu-latest
1214
strategy:
1315
matrix:
14-
node: [20]
16+
node: [22]
1517
container:
1618
image: node:${{ matrix.node }}
1719
defaults:

‎.github/workflows/release.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ jobs:
1616
steps:
1717
- uses: actions/setup-node@39370e3970a6d050c480ffad4ff0ed4d3fdee5af # v4.1.0
1818
with:
19-
node-version: 20
19+
node-version: 22
2020
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
2121
- name: Build dist
2222
working-directory: lambdas

‎.pre-commit-config.yaml

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
repos:
22
- repo: https://github.com/antonbabenko/pre-commit-terraform
3-
rev: v1.83.5
3+
rev: v1.96.2
44
hooks:
55
- id: terraform_fmt
66
- id: terraform_tflint
77
args:
88
- --args=--config=__GIT_WORKING_DIR__/.tflint.hcl --var-file __GIT_WORKING_DIR__/.github/lint/tflint.tfvars
99
- repo: https://github.com/pre-commit/pre-commit-hooks
10-
rev: v4.5.0
10+
rev: v5.0.0
1111
hooks:
1212
- id: check-merge-conflict

‎.tflint.hcl

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ config {
55

66
plugin "aws" {
77
enabled = true
8-
version = "0.30.0"
8+
version = "0.36.0"
99
source = "github.com/terraform-linters/tflint-ruleset-aws"
1010
}
1111

‎README.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -81,14 +81,14 @@ Talk to the forestkeepers in the `runners-channel` on Slack.
8181
| Name | Version |
8282
|------|---------|
8383
| <a name="requirement_terraform"></a> [terraform](#requirement\_terraform) | >= 1.3.0 |
84-
| <a name="requirement_aws"></a> [aws](#requirement\_aws) | ~> 5.27 |
84+
| <a name="requirement_aws"></a> [aws](#requirement\_aws) | ~> 5.77 |
8585
| <a name="requirement_random"></a> [random](#requirement\_random) | ~> 3.0 |
8686

8787
## Providers
8888

8989
| Name | Version |
9090
|------|---------|
91-
| <a name="provider_aws"></a> [aws](#provider\_aws) | ~> 5.27 |
91+
| <a name="provider_aws"></a> [aws](#provider\_aws) | ~> 5.77 |
9292
| <a name="provider_random"></a> [random](#provider\_random) | ~> 3.0 |
9393

9494
## Modules
@@ -166,7 +166,7 @@ Talk to the forestkeepers in the `runners-channel` on Slack.
166166
| <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 |
167167
| <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` | `"arm64"` | no |
168168
| <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 |
169-
| <a name="input_lambda_runtime"></a> [lambda\_runtime](#input\_lambda\_runtime) | AWS Lambda runtime. | `string` | `"nodejs20.x"` | no |
169+
| <a name="input_lambda_runtime"></a> [lambda\_runtime](#input\_lambda\_runtime) | AWS Lambda runtime. | `string` | `"nodejs22.x"` | no |
170170
| <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. | `string` | `null` | no |
171171
| <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 |
172172
| <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 |

‎examples/default/.terraform.lock.hcl

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

‎examples/default/README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ terraform output -raw webhook_secret
4242

4343
| Name | Version |
4444
|------|---------|
45-
| <a name="provider_random"></a> [random](#provider\_random) | 3.6.0 |
45+
| <a name="provider_random"></a> [random](#provider\_random) | 3.6.3 |
4646

4747
## Modules
4848

0 commit comments

Comments
 (0)
This repository has been archived.