Hey @Tyler_Collins
Try this code out. It works fine in my app.
exports = function(s3Path) {
const s3 = context.services.get("AWS").s3("ap-southeast-2");
const bucket = "my-bucket";
const presignedUrl = s3.PresignURL({
Bucket: bucket,
Key: s3Path,
// HTTP method that is valid for this signed URL. Can use PUT for uploads, or GET for downloads.
Method: "GET",
// Duration of the lifetime of the signed url, in milliseconds
ExpirationMS: 900000
});
return presignedUrl;
};