Created
August 7, 2022 08:11
-
-
Save BenjaminKlatt/3c9b9f61e3e086d157b2a299f50980b7 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
import * as pulumi from "@pulumi/pulumi"; | |
import * as aws from "@pulumi/aws"; | |
import * as awsx from "@pulumi/awsx"; | |
// Create an AWS resource (S3 Bucket) | |
const bucket = new aws.s3.Bucket("my-bucket"); | |
// Export the name of the bucket | |
export const bucketName = bucket.id; | |
// Create the most simple AWS Lambda event handler on our bucket using magic functions. | |
bucket.onObjectCreated("docsHandler", (e) => { | |
console.log(e); | |
} | |
); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment