Devin
12/22/2021, 7:15 PM@xstate/form
is coming anywaySam Hulick
12/24/2021, 5:57 AMs3:ListBucket
permission.Gjorgji Kjosev
12/25/2021, 12:08 AMthdxr
12/25/2021, 2:44 PMGjorgji Kjosev
12/29/2021, 12:33 AMSam Hulick
12/29/2021, 5:35 AMSam Hulick
12/30/2021, 1:17 AM// —- Some comment --
and then it’ll treat those as a sort of index or table of contents that you can easily jump to?Garret Harp
12/31/2021, 7:43 PMSam Hulick
01/03/2022, 2:04 AMSam Hulick
01/05/2022, 5:08 AMDevin
01/05/2022, 4:15 PMthdxr
01/05/2022, 6:11 PMRoss Coundon
01/05/2022, 8:47 PMSam Hulick
01/05/2022, 9:32 PMSam Hulick
01/05/2022, 11:14 PMSendTaskFailure
to it using the task token? I assume the step function just throws an error and ends in a failed state..?Sam Hulick
01/06/2022, 5:01 PMRoss Coundon
01/07/2022, 7:51 AMthdxr
01/07/2022, 1:58 PMGarret Harp
01/07/2022, 3:29 PMthdxr
01/08/2022, 10:24 PMSam Hulick
01/10/2022, 6:12 PMAlex Ketchum
01/10/2022, 9:05 PM// Node.js file
const {a,b,c} = process.env
module.exports.lambdaHandler1 = async () => {
console.log(a)
helperFunction1()
}
function helperFunction1() {
console.log(b)
}
module.exports.lambdaHandler2 = async () => {
console.log(c)
}
We want to switch to using the AWS Node SDK getParameters function to get the parameters at run time. Does anyone have any suggestions for calling the get parameters function at the top of the lambda handler file to simplify variable declaration for these variables that will be shared across many functions? This is an async function, so i cant await the function call at the top level, since it is outside any async functions.
My immediate first idea was a simple change to something like below, but this does not work due to the getParameters call being async.
// Node.js file
// This wont work because you can not use await outside an async function
const {a,b,c} = await AWS.SSM().getParameters(['/path/to/a', '/path/to/b', '/path/to/c'])
module.exports.lambdaHandler1 = async () => {
console.log(a)
helperFunction1()
}
function helperFunction1() {
console.log(b)
}
module.exports.lambdaHandler2 = async () => {
console.log(c)
}
What I really want to avoid is calling the “getParameters” function inside each lambda handler. That results in a lot of duplicate code and means that any helper function where we want to use an environment variable (like a database name) must be asynchronous or updated to take the env var as a parameter, which is unnecessary for many of these helper functionsSam Hulick
01/11/2022, 4:14 AMOmi Chowdhury
01/11/2022, 7:38 PMSahan Amadoruge
01/12/2022, 4:03 PMRoss Coundon
01/13/2022, 5:04 PMthdxr
01/13/2022, 8:15 PMCarlos Daniel
01/13/2022, 10:50 PMGjorgji Kjosev
01/15/2022, 2:25 AMthdxr
01/19/2022, 12:29 AM