Showing posts with label AWS. Show all posts
Showing posts with label AWS. Show all posts

How Can I Write Logs Directly to AWS S3 in Nodejs?

 Here is the code in which you can directly work with AWS S3 Logs.// need to install "npm install aws-sdk" first if not existconst AWS = require('aws-sdk')const s3 = new AWS.S3({    // your S3 accessKeyId and your S3 secretAccessKey    accessKeyId: process.env.ACCESS_KEY_ID.trim(),    secretAccessKey: process.env.SECRET_ACCESS_KEY.trim()})//...