Skip to content

Commit

Permalink
Add files via upload
Browse files Browse the repository at this point in the history
File for the "Creating a Lambda Function Using the AWS Console" hands on lab.
  • Loading branch information
michaelolear authored Aug 22, 2023
1 parent 7b4c35a commit de29289
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions creating-a-lambda-function-using-the-aws-console/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
const https = require('https')
let url = "https://www.amazon.com"

exports.handler = function(event, context, callback) {
https.get(url, (res) => {
callback(null, res.statusCode)
}).on('error', (e) => {
callback(Error(e))
})
}

0 comments on commit de29289

Please sign in to comment.