-
Notifications
You must be signed in to change notification settings - Fork 9.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[lambda] Replace all occurrences of nodejs14 with nodejs20
- Loading branch information
1 parent
b9d9303
commit 322cc1c
Showing
8 changed files
with
43 additions
and
37 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
21 changes: 0 additions & 21 deletions
21
internal/service/lambda/test-fixtures/lambda_invocation_crud.js
This file was deleted.
Oops, something went wrong.
27 changes: 27 additions & 0 deletions
27
internal/service/lambda/test-fixtures/lambda_invocation_crud.mjs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
/** | ||
* Copyright (c) HashiCorp, Inc. | ||
* SPDX-License-Identifier: MPL-2.0 | ||
*/ | ||
|
||
import { SSMClient, PutParameterCommand } from "@aws-sdk/client-ssm"; | ||
|
||
const ssmClient = new SSMClient(); | ||
|
||
export const handler = async (event) => { | ||
let tf_key = "tf"; | ||
if (tf_key in event) { | ||
if (event[tf_key].action == "delete" && process.env.TEST_DATA != "") { | ||
try { | ||
await ssmClient.send(new PutParameterCommand({ | ||
Name: process.env.TEST_DATA, | ||
Value: JSON.stringify(event), | ||
Type: "String" | ||
})); | ||
} catch (error) { | ||
console.error("Error putting parameter:", error); | ||
throw error; | ||
} | ||
} | ||
} | ||
return event; | ||
} |
Binary file modified
BIN
+162 Bytes
(140%)
internal/service/lambda/test-fixtures/lambda_invocation_crud.zip
Binary file not shown.