import * as aws from "@pulumi/aws"; const bucket = new aws.s3.Bucket("demo-files", { tags: { Project: "pulumi-start", Environment: "dev" }, }); new aws.s3.BucketPublicAccessBlock("demo-files-private", { bucket: bucket.id, blockPublicAcls: true, blockPublicPolicy: true, ignorePublicAcls: true, restrictPublicBuckets: true, }); const message = new aws.s3.BucketObjectv2("demo-message", { bucket: bucket.id, key: "hello.txt", content: "Hello from Pulumi and TypeScript.\n", contentType: "text/plain", }); export const bucketName = bucket.id; export const objectKey = message.key;