diff --git a/aws-ts-s3-lambda-copyzip/index.ts b/aws-ts-s3-lambda-copyzip/index.ts index fb84287d8..7971495cd 100644 --- a/aws-ts-s3-lambda-copyzip/index.ts +++ b/aws-ts-s3-lambda-copyzip/index.ts @@ -4,8 +4,8 @@ import * as s3sdk from "@aws-sdk/client-s3"; import * as aws from "@pulumi/aws"; // Create a bucket each for TPS reports and their archived zips. -const tpsReports = new aws.s3.BucketV2("tpsReports"); -const tpsZips = new aws.s3.BucketV2("tpsZips"); +const tpsReports = new aws.s3.Bucket("tpsReports"); +const tpsZips = new aws.s3.Bucket("tpsZips"); // Anytime a new TPS Report is uploaded, archive it in a zipfile. tpsReports.onObjectCreated("zipTpsReports", async (e) => {