Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bug fix in lambda-secrerlayer [CDS-1486] #154

Merged
merged 1 commit into from
Aug 25, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions src/lambda-secretLayer/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@

## lambda-secretLayer

### 0.0.3 / 25.8.2024
* [update] Allow the layer to run in nodejs20 applications.

### 0.0.2 / 1.10.2023
* [Change] Change SSM option in the integration to SM - Secret Manager.

Expand Down
4 changes: 2 additions & 2 deletions src/lambda-secretLayer/template.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,13 @@ Metadata:
- lambda
- extension
HomePageUrl: https://coralogix.com
SemanticVersion: 1.0.2
SemanticVersion: 1.0.3
SourceCodeUrl: https://github.com/coralogix/coralogix-aws-serverless
Parameters:
CompatibleRuntimes:
Type: CommaDelimitedList
Description: Lambda Layer Version compatible runtimes
Default: nodejs16.x, nodejs18.x, nodejs14.x
Default: nodejs16.x, nodejs18.x, nodejs14.x, nodejs20.x
RetentionPolicy:
Type: String
Description: Lambda Layer Version retention policy
Expand Down
6 changes: 3 additions & 3 deletions src/lambda-secretLayer/wrapper.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,13 @@

node_version=$(node -e "console.log(process.version)")

if [[ $node_version == v18.* ]]; then
node /opt/wrapper18.js
if [[ $node_version == v16.* || $node_version == v14.* ]]; then
node /opt/wrapper16.js
#cat /tmp/envVars

source /tmp/envVars
else
node /opt/wrapper16.js
node /opt/wrapper18.js
#cat /tmp/envVars

source /tmp/envVars
Expand Down
Binary file modified src/lambda-secretLayer/wrapper.zip
Binary file not shown.
Loading