I have a NodeJS script that works fine and outputs to Lambda console. How do I direct the Lambda console output to a S3 bucket.
Below is the NodeJS code:
exports.handler = async (event) => {
console.log("Start")
let res = await sign(header, payload, keyId)
console.log(`JWT token:\n [${res}]`)
}