Skip to content

Commit

Permalink
updating default node runtimes (#140)
Browse files Browse the repository at this point in the history
* updating default node runtimes

* indent

* test suppression

* test focal dist

* add suppression message back, use requirements.txt

* pinning cfn-lint to lower version

* prerelease

* updating aws-sdk version

* prerelease

* test suppression message 1 time

* prerelease

* add back new lines
  • Loading branch information
bilindhajer authored Jul 28, 2023
1 parent fb9bab4 commit ed10d93
Show file tree
Hide file tree
Showing 31 changed files with 164 additions and 164 deletions.
5 changes: 3 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
dist: focal
language: node_js
node_js:
- 14
- 16
- 18
before_install:
- pyenv install 3.7.9
- pyenv global 3.7.9
- pip install aws-sam-cli==1.59.0
- pip install cfn-lint==0.60.0
- pip install -r requirements.dev.txt
2 changes: 1 addition & 1 deletion lib/shortcuts/api.md
Original file line number Diff line number Diff line change
Expand Up @@ -400,7 +400,7 @@ Log Group, a Role, an Alarm on function errors, and the Lambda Function itself.
| [options.Layers] | <code>Array.&lt;String&gt;</code> | | See [AWS documentation](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-function.html#cfn-lambda-function-layers). |
| [options.MemorySize] | <code>Number</code> | <code>128</code> | See [AWS documentation](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-function.html#cfn-lambda-function-memorysize). |
| [options.ReservedConcurrentExecutions] | <code>Number</code> | | See [AWS documentation](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-function.html#cfn-lambda-function-reservedconcurrentexecutions). |
| [options.Runtime] | <code>String</code> | <code>&#x27;nodejs16.x&#x27;</code> | See [AWS documentation](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-function.html#cfn-lambda-function-runtime). |
| [options.Runtime] | <code>String</code> | <code>&#x27;nodejs18.x&#x27;</code> | See [AWS documentation](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-function.html#cfn-lambda-function-runtime). |
| [options.Tags] | <code>Array.&lt;Object&gt;</code> | | See [AWS documentation](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-function.html#cfn-lambda-function-tags). |
| [options.Timeout] | <code>Number</code> | <code>300</code> | See [AWS documentation](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-function.html#cfn-lambda-function-timeout). |
| [options.TracingConfig] | <code>Object</code> | | See [AWS documentation](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-function.html#cfn-lambda-function-tracingconfig). |
Expand Down
4 changes: 2 additions & 2 deletions lib/shortcuts/lambda.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ const ServiceRole = require('./service-role');
* @param {Array<String>} [options.Layers=undefined] - See [AWS documentation](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-function.html#cfn-lambda-function-layers).
* @param {Number} [options.MemorySize=128] - See [AWS documentation](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-function.html#cfn-lambda-function-memorysize).
* @param {Number} [options.ReservedConcurrentExecutions=undefined] - See [AWS documentation](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-function.html#cfn-lambda-function-reservedconcurrentexecutions).
* @param {String} [options.Runtime='nodejs16.x'] - See [AWS documentation](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-function.html#cfn-lambda-function-runtime).
* @param {String} [options.Runtime='nodejs18.x'] - See [AWS documentation](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-function.html#cfn-lambda-function-runtime).
* @param {Array<Object>} [options.Tags=undefined] - See [AWS documentation](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-function.html#cfn-lambda-function-tags).
* @param {Number} [options.Timeout=300] - See [AWS documentation](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-function.html#cfn-lambda-function-timeout).
* @param {Object} [options.TracingConfig=undefined] - See [AWS documentation](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-function.html#cfn-lambda-function-tracingconfig).
Expand Down Expand Up @@ -78,7 +78,7 @@ class Lambda {
Layers,
MemorySize = 128,
ReservedConcurrentExecutions,
Runtime = 'nodejs16.x',
Runtime = 'nodejs18.x',
Tags,
Timeout = 300,
TracingConfig,
Expand Down
1 change: 1 addition & 0 deletions lib/validate.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
'use strict';

require('aws-sdk/lib/maintenance_mode_message').suppress = true;
const AWS = require('aws-sdk');
const build = require('./build');

Expand Down
Loading

0 comments on commit ed10d93

Please sign in to comment.