Skip to content

Commit 4ec4a7a

Browse files
authored
Update kubernetes-ts-s3-rollout to BucketV2 (#1701)
Re: pulumi/home#3631
1 parent d4ba677 commit 4ec4a7a

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

kubernetes-ts-s3-rollout/s3Helpers.ts

+4-4
Original file line numberDiff line numberDiff line change
@@ -9,24 +9,24 @@ import * as pulumi from "@pulumi/pulumi";
99

1010
export interface FileBucketOpts {
1111
files: string[];
12-
policy?: (bucket: aws.s3.Bucket) => pulumi.Output<string>;
12+
policy?: (bucket: aws.s3.BucketV2) => pulumi.Output<string>;
1313
}
1414

1515
export class FileBucket {
16-
public readonly bucket: aws.s3.Bucket;
16+
public readonly bucket: aws.s3.BucketV2;
1717
public readonly files: { [key: string]: aws.s3.BucketObject };
1818
public readonly policy: aws.s3.BucketPolicy;
1919

2020
private readonly fileContents: { [key: string]: string };
2121

2222
constructor(bucketName: string, opts: FileBucketOpts) {
23-
this.bucket = new aws.s3.Bucket(bucketName);
23+
this.bucket = new aws.s3.BucketV2(bucketName);
2424
this.fileContents = {};
2525
this.files = {};
2626
for (const file of opts.files) {
2727
this.fileContents[file] = fs.readFileSync(file).toString();
2828
this.files[file] = new aws.s3.BucketObject(file, {
29-
bucket: this.bucket,
29+
bucket: this.bucket.bucket,
3030
source: new pulumi.asset.FileAsset(file),
3131
contentType: mime.getType(file) || undefined,
3232
});

0 commit comments

Comments
 (0)