Created
September 8, 2020 03:10
-
-
Save mobsense/3604fb6f5d0ce835afb786cc372512a6 to your computer and use it in GitHub Desktop.
Calling async HTTP request from lambda
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
exports.handler = async (event, context) { | |
... | |
let result = await request('https://metric-service.com', metrics) | |
return result | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment