title: Fetching signed URL from AWS S3 on my Node Server
body: <p><strong>Solved:</strong></p>
  
  <p>I want to get a <strong>signed URL</strong> from my <strong>amazon S3 server</strong>. I am new to <strong>AWS</strong>. where do i set my <strong>secret-key</strong> and <strong>access_id_key</strong> so that <strong>S3</strong> identifies request from my <strong>server</strong>.    </p>
  
  <pre><code>var express=require('express');
  var app=express();
  
  
  var AWS = require('aws-sdk')
  , s3 = new AWS.S3()
  , params = {Bucket: 'my-bucket', Key: 'path/to/key', Expiration: 20}
  
  s3.getSignedUrl('getObject', params, function (err, url) {
  console.log('Signed URL: ' + url)
  })
  
  app.listen(8000)
  </code></pre>