Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions creating-a-lambda-function-using-the-aws-console/index.js
Original file line number Diff line number Diff line change
@@ -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) => {
Expand Down