Search code examples
amazon-web-serviceslambdaaws-media-convert

Lambda function calling MediaConvert SDK to describeEndpoints timeout


I am just attempting to call describeEndpoints of mediaconvert SDK but seems like it times out, why could that be. I already gave my Lambda function admin access. I set timeout to 30s which should be more than sufficient but it still fails

const AWS = require('aws-sdk');
const util = require('util');

async function test() {
    let mediaconvert = new AWS.MediaConvert();
    const describeEndpoints = util
        .promisify(mediaconvert.describeEndpoints)
        .bind(mediaconvert);
    return await describeEndpoints()
}

Solution

  • Have you launched lambda in vpc ? if so, check if it has nat gateway , lambda doesn't work with subnet with route igw.