Created
August 7, 2022 08:18
-
-
Save BenjaminKlatt/98fff63a60cfba191a9c5280cb8f9989 to your computer and use it in GitHub Desktop.
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
const bucket = new aws.s3.Bucket("testbucket"); | |
bucket.onObjectCreated("onFileUpload", async event => { | |
console.log("I am running inside AWS Lambda!"); | |
for (const record of event.records) { | |
console.log(record.s3.object.key); | |
} | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment