Skip to content

Commit

Permalink
added ALB event example
Browse files Browse the repository at this point in the history
  • Loading branch information
ihendriks committed Aug 15, 2022
1 parent 5ff56df commit 2584b66
Show file tree
Hide file tree
Showing 5 changed files with 5,080 additions and 0 deletions.
1 change: 1 addition & 0 deletions examples/events/alb/.npmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
save-exact=true
12 changes: 12 additions & 0 deletions examples/events/alb/handler.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
'use strict'

const { env } = require('node:process')

const { stringify } = JSON

exports.hello = async function hello() {
return {
body: stringify({ foo: 'bar', IS_OFFLINE: env.IS_OFFLINE }),
statusCode: 200,
}
}
Loading

0 comments on commit 2584b66

Please sign in to comment.