Slawomir Stec
08/21/2021, 3:20 PMimport {APIGatewayProxyEventV2, APIGatewayProxyHandlerV2} from "aws-lambda";
import * as fs from 'fs'
export const handler: APIGatewayProxyHandlerV2 = async (event: APIGatewayProxyEventV2) => {
fs.readdirSync("/").forEach(file => {
console.log(file);
});
return {
statusCode: 200,
headers: {"Content-Type": "text/plain"},
body: `Response: ${JSON.stringify({})}`,
};
};
I come across this when trying to use EFS in the lambda code. Attached code list my OS folder structure. Any hints?thdxr
08/21/2021, 3:22 PMthdxr
08/21/2021, 3:22 PMSlawomir Stec
08/21/2021, 3:25 PMRoss Coundon
08/21/2021, 8:50 PMthdxr
08/21/2021, 9:45 PMRoss Coundon
08/21/2021, 10:00 PMthdxr
08/21/2021, 10:00 PMSlawomir Stec
08/22/2021, 3:49 AMFrank
Frank
Slawomir Stec
08/23/2021, 6:15 AMFrank