Skip to content
This repository was archived by the owner on Sep 17, 2024. It is now read-only.

Commit 27c39c6

Browse files
jherojejavier.ojeda
and
javier.ojeda
authored
lambda runtime to node18.x (#111)
Co-authored-by: javier.ojeda <[email protected]>
1 parent 81f9cb6 commit 27c39c6

File tree

6 files changed

+13
-10
lines changed

6 files changed

+13
-10
lines changed

.travis.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
language: node_js
22
node_js:
3-
- "14"
3+
- "18"
44
install:
55
# Install deps
66
- npm install

babelrc-node.js

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
module.exports = {
2-
"presets": [["@babel/preset-env", {
3-
"targets": {
4-
"node": "14"
2+
presets: [['@babel/preset-env', {
3+
targets: {
4+
node: '18'
55
}
66
}]],
7-
"env": {}
7+
env: {}
88
};

cloud_formation/event_multi_region_template/autotag_event_main-template.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@
9393
"Arn"
9494
]
9595
},
96-
"Runtime": "nodejs14.x",
96+
"Runtime": "nodejs18.x",
9797
"Timeout": 120,
9898
"Environment": {
9999
"Variables": {

cloud_formation/event_multi_region_template/autotag_event_main-template.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@
7070
FunctionName: sub('${LambdaName}'),
7171
Handler: sub('autotag_event.handler'),
7272
Role: get_att('AutoTagExecutionRole', 'Arn'),
73-
Runtime: 'nodejs14.x',
73+
Runtime: 'nodejs18.x',
7474
# the ec2 instance worker will wait for up to 45 seconds for a
7575
# opsworks stack or autoscaling group to be tagged with the creator
7676
# in case the events come out of order

cloud_formation/event_single_region_template/autotag_event-template.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@
6767
},
6868
"Handler" : "autotag_event.handler",
6969
"Role" : { "Fn::GetAtt" : [ "AutoTagExecutionRole", "Arn" ] },
70-
"Runtime" : "nodejs14.x",
70+
"Runtime" : "nodejs18.x",
7171
"Timeout" : 120,
7272
"Environment": {
7373
"Variables": {

spec/autotag_spec.js

+5-2
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,11 @@ each(cloudTrailEventConfig, (value, key) => {
2121

2222
describe('AutoTag index file', () => {
2323
beforeAll(() => {
24-
requireMock('../src/aws_cloud_trail_event_listener', AwsCloudTrailListenerMock);
25-
sut = require('../src/autotag_event.js'); // eslint-disable-line global-require
24+
requireMock(
25+
'../src/aws_cloud_trail_event_listener',
26+
AwsCloudTrailListenerMock
27+
);
28+
sut = require('../src/autotag_event'); // eslint-disable-line global-require
2629
});
2730

2831
afterAll(() => {

0 commit comments

Comments
 (0)