skip to Main Content

Cannot import csv-parse on lambda in nodejs 12

I am writing a code which requires csv-parse on lambda. Runtime is node 12.x. I installed following modules via npm 6.14.10 (node v12.20.1) { "name": "data_analysis_node", "version": "1.0.0", "description": "", "main": "index.js", "scripts": { "test": "echo "Error: no test specified"…

VIEW QUESTION

Connect to AWS S3 bucket from Nodejs app ( persistent connection required)

I have nodejs/express app from which I want to connect to AWS S3. I do have a temporary approach to make connection, environment file aws_access_key_id=XXX aws_secret_access_key=XXXX/ aws_session_token=xxxxxxxxxxxxxxxxxxxxxxxxxx S3-connection-service.js const AWS = require("aws-sdk"); AWS.config.update({ accessKeyId: `${process.env.aws_access_key_id}`, secretAccessKey: `${process.env.aws_secret_access_key}`, sessionToken: `${process.env.aws_session_token}`, region:…

VIEW QUESTION
Back To Top
Search