2 Answers
- Newest
- Most votes
- Most comments
0
Hello.
Is it possible to provide the code directly instead of the image?
Also, could you please share what you are trying to do?
I'm not very good at JavaScript, but I think I need to add the code below.
var AWS = require('aws-sdk');
var s3 = new AWS.S3();
There are other sample codes for obtaining signed URLs, so why not refer to them?
https://docs.aws.amazon.com/AmazonS3/latest/userguide/example_s3_Scenario_PresignedUrl_section.html
0
This is code for sdk 2.x. As per the this page if you use runtime nodejs18.x it comes with sdk 3.x, which is completely different api.
answered 6 months ago
Relevant content
- Accepted Answerasked 2 months ago
- Accepted Answerasked 3 months ago
- AWS OFFICIALUpdated a year ago
- AWS OFFICIALUpdated a month ago
I agree, i changed my nodejs runtime to 14x, it was using 18x that's why I could not use require, but changing it to 14x and using the above code worked for me.