const s3 = new AWS.S3({ accessKeyId: IAM_USER_KEY, /* required */ # Put your iam user key secretAccessKey: IAM_USER_SECRET, /* required */ # Put your iam user secret key Bucket: BUCKET_NAME /* required */ # Put your bucket name });