Skip to content

Commit 01f613c

Browse files
marcofranssennpalm
andcommitted
Bump node from 12.x to 14.x for lambdas
Co-authored-by: Niek Palm <[email protected]>
1 parent d180f00 commit 01f613c

File tree

15 files changed

+39
-15
lines changed

15 files changed

+39
-15
lines changed

.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:12 as build
2+
FROM node:14 as build
33
WORKDIR /lambda
44
RUN apt-get update \
55
&& apt-get install -y zip \

.github/workflows/lambda-runner-binaries-syncer.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ on:
1414
jobs:
1515
build:
1616
runs-on: ubuntu-latest
17-
container: node:12
17+
container: node:14
1818
defaults:
1919
run:
2020
working-directory: ${{ env.lambda_path }}

.github/workflows/lambda-runners.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ on:
1111
jobs:
1212
build:
1313
runs-on: ubuntu-latest
14-
container: node:12
14+
container: node:14
1515
defaults:
1616
run:
1717
working-directory: modules/runners/lambdas/runners

.github/workflows/lambda-webhook.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ on:
1111
jobs:
1212
build:
1313
runs-on: ubuntu-latest
14-
container: node:12
14+
container: node:14
1515
defaults:
1616
run:
1717
working-directory: modules/webhook/lambdas/webhook

.github/workflows/release.yml

+4-4
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,9 @@ jobs:
1010
prepare:
1111
name: Create dist
1212
runs-on: ubuntu-latest
13-
container: node:12
13+
container: node:14
1414
strategy:
15-
matrix:
15+
matrix:
1616
lambda: ["modules/webhook/lambdas/webhook", "modules/runner-binaries-syncer/lambdas/runner-binaries-syncer", "modules/runners/lambdas/runners"]
1717
steps:
1818
- name: Extract lambda name
@@ -64,14 +64,14 @@ jobs:
6464
appInstallationValue: ${{ github.repository }}
6565

6666
- name: Dry run release
67-
if: github.event_name != 'pull_request'
67+
if: github.event_name != 'pull_request'
6868
env:
6969
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # Read only token
7070
run: |
7171
cp .release/* .
7272
yarn
7373
yarn release -d --repositoryUrl https://x-access-token:[email protected]/$GITHUB_REPOSITORY.git
74-
74+
7575
- name: Release
7676
if: github.event_name != 'pull_request' && contains('refs/heads/master', github.ref)
7777
env:

examples/default/versions.tf

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ terraform {
22
required_providers {
33
aws = {
44
source = "hashicorp/aws"
5-
version = ">= 3.20"
5+
version = ">= 3.27"
66
}
77
local = {
88
source = "hashicorp/local"

examples/permissions-boundary/providers.tf

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
provider "aws" {
22
alias = "terraform_role"
33
region = local.aws_region
4-
version = "3.20"
4+
version = "3.60"
55
assume_role {
66
role_arn = data.terraform_remote_state.iam.outputs.role
77
}

examples/ubuntu/providers.tf

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
terraform {
22
required_providers {
33
aws = {
4-
version = "3.20"
4+
version = "3.27"
55
}
66
random = {
77
version = "3.1.0"

modules/runner-binaries-syncer/runner-binaries-syncer.tf

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ resource "aws_lambda_function" "syncer" {
1212
function_name = "${var.environment}-syncer"
1313
role = aws_iam_role.syncer_lambda.arn
1414
handler = "index.handler"
15-
runtime = "nodejs12.x"
15+
runtime = "nodejs14.x"
1616
timeout = var.lambda_timeout
1717
memory_size = 256
1818

Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
terraform {
2+
required_providers {
3+
aws = {
4+
source = "aws"
5+
version = ">=3.27"
6+
}
7+
}
8+
}

modules/runners/scale-down.tf

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ resource "aws_lambda_function" "scale_down" {
77
function_name = "${var.environment}-scale-down"
88
role = aws_iam_role.scale_down.arn
99
handler = "index.scaleDown"
10-
runtime = "nodejs12.x"
10+
runtime = "nodejs14.x"
1111
timeout = var.lambda_timeout_scale_down
1212
tags = local.tags
1313

modules/runners/scale-up.tf

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ resource "aws_lambda_function" "scale_up" {
77
function_name = "${var.environment}-scale-up"
88
role = aws_iam_role.scale_up.arn
99
handler = "index.scaleUp"
10-
runtime = "nodejs12.x"
10+
runtime = "nodejs14.x"
1111
timeout = var.lambda_timeout_scale_up
1212
reserved_concurrent_executions = 1
1313
tags = local.tags

modules/runners/versions.tf

+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
terraform {
2+
required_providers {
3+
aws = {
4+
source = "aws"
5+
version = ">=3.27"
6+
}
7+
}
8+
}

modules/webhook/versions.tf

+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
terraform {
2+
required_providers {
3+
aws = {
4+
source = "aws"
5+
version = ">=3.27"
6+
}
7+
}
8+
}

modules/webhook/webhook.tf

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ resource "aws_lambda_function" "webhook" {
77
function_name = "${var.environment}-webhook"
88
role = aws_iam_role.webhook_lambda.arn
99
handler = "index.githubWebhook"
10-
runtime = "nodejs12.x"
10+
runtime = "nodejs14.x"
1111
timeout = var.lambda_timeout
1212

1313
environment {

0 commit comments

Comments
 (0)