using role instead of keys to get signed url in s3 but nothing returned and no errors
问题 I tried if I use access key, it works fine but I am trying to get ride of access key and using role instead, but once I get ride of access key. what I get in return is www.aws.amazon.com const AWS = require('aws-sdk'); const s3 = new AWS.S3(); const params = {Bucket: config.bucket, Expires: config.time, Key}; const url = s3.getSignedUrl('getObject', params); console.log('The URL is', url); I even made sure my role is set right by going into my ec2 and run the cli command aws s3 presign s3:/