const AWS = require('aws-sdk') AWS.config.update({region: 'eu-west-1'}) const ec2 = new AWS.EC2() const inst = ec2.describeInstances().promise() async function main(){ const result = await inst console.log('instances', result) } main()