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

Commit

Permalink
lambda runtime to node18.x (#111)
Browse files Browse the repository at this point in the history
Co-authored-by: javier.ojeda <[email protected]>
  • Loading branch information
jheroje and javier.ojeda authored Dec 13, 2022
1 parent 81f9cb6 commit 27c39c6
Show file tree
Hide file tree
Showing 6 changed files with 13 additions and 10 deletions.
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
language: node_js
node_js:
- "14"
- "18"
install:
# Install deps
- npm install
Expand Down
8 changes: 4 additions & 4 deletions babelrc-node.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
module.exports = {
"presets": [["@babel/preset-env", {
"targets": {
"node": "14"
presets: [['@babel/preset-env', {
targets: {
node: '18'
}
}]],
"env": {}
env: {}
};
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@
"Arn"
]
},
"Runtime": "nodejs14.x",
"Runtime": "nodejs18.x",
"Timeout": 120,
"Environment": {
"Variables": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@
FunctionName: sub('${LambdaName}'),
Handler: sub('autotag_event.handler'),
Role: get_att('AutoTagExecutionRole', 'Arn'),
Runtime: 'nodejs14.x',
Runtime: 'nodejs18.x',
# the ec2 instance worker will wait for up to 45 seconds for a
# opsworks stack or autoscaling group to be tagged with the creator
# in case the events come out of order
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@
},
"Handler" : "autotag_event.handler",
"Role" : { "Fn::GetAtt" : [ "AutoTagExecutionRole", "Arn" ] },
"Runtime" : "nodejs14.x",
"Runtime" : "nodejs18.x",
"Timeout" : 120,
"Environment": {
"Variables": {
Expand Down
7 changes: 5 additions & 2 deletions spec/autotag_spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,11 @@ each(cloudTrailEventConfig, (value, key) => {

describe('AutoTag index file', () => {
beforeAll(() => {
requireMock('../src/aws_cloud_trail_event_listener', AwsCloudTrailListenerMock);
sut = require('../src/autotag_event.js'); // eslint-disable-line global-require
requireMock(
'../src/aws_cloud_trail_event_listener',
AwsCloudTrailListenerMock
);
sut = require('../src/autotag_event'); // eslint-disable-line global-require
});

afterAll(() => {
Expand Down

0 comments on commit 27c39c6

Please sign in to comment.