diff --git a/creating-a-lambda-function-using-the-aws-console/index.js b/creating-a-lambda-function-using-the-aws-console/index.js index 289029b..cf6b65b 100644 --- a/creating-a-lambda-function-using-the-aws-console/index.js +++ b/creating-a-lambda-function-using-the-aws-console/index.js @@ -1,7 +1,7 @@ -const https = require('https'); +import https from 'https'; let url = "https://www.amazon.com"; -exports.handler = async function(event) { +export const handler = async function(event) { let statusCode; await new Promise(function(resolve, reject) { https.get(url, (res) => {