Skip to content

Commit

Permalink
fix: patched param retrival
Browse files Browse the repository at this point in the history
  • Loading branch information
ndaba1 committed Nov 20, 2023
1 parent e2584ae commit dd58017
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/sweet-poems-travel.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@jumba/lambda-utils": patch
---

patched parameter retrival function
2 changes: 1 addition & 1 deletion packages/lambda-utils/src/secrets.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import {
export async function getAmplifySecret(secretName: string) {
const client = new SSMClient();
const command = new GetParameterCommand({
Name: process.env[secretName[0]] || "",
Name: process.env[secretName] || "",
WithDecryption: true,
});
const { Parameter } = await client.send(command);
Expand Down

0 comments on commit dd58017

Please sign in to comment.