From 2a7378e1d5cc1b44902fe8f096f951dbd9486d67 Mon Sep 17 00:00:00 2001 From: Anton Tayanovskyy Date: Fri, 27 Sep 2024 15:57:08 -0400 Subject: [PATCH] Update multicloud-ts-buckets to BucketV2 (#1702) Re: pulumi/home#3631 --- multicloud-ts-buckets/README.md | 4 ++-- multicloud-ts-buckets/index.ts | 3 +-- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/multicloud-ts-buckets/README.md b/multicloud-ts-buckets/README.md index c069a9154..407d115b8 100644 --- a/multicloud-ts-buckets/README.md +++ b/multicloud-ts-buckets/README.md @@ -39,7 +39,7 @@ Previewing update (multicloud-ts-buckets-dev): Type Name Plan + pulumi:pulumi:Stack multicloud-ts-buckets-multicloud-ts-buckets-dev create + ├─ gcp:storage:Bucket my-bucket create - + └─ aws:s3:Bucket my-bucket create + + └─ aws:s3:BucketV2 my-bucket create Resources: 3 changes @@ -51,7 +51,7 @@ Updating (multicloud-ts-buckets-dev): Type Name Status + pulumi:pulumi:Stack multicloud-ts-buckets-multicloud-ts-buckets-dev created + ├─ gcp:storage:Bucket my-bucket created - + └─ aws:s3:Bucket my-bucket created + + └─ aws:s3:BucketV2 my-bucket created Outputs: bucketNames: [ diff --git a/multicloud-ts-buckets/index.ts b/multicloud-ts-buckets/index.ts index 81ea4856f..9ebdf14f7 100644 --- a/multicloud-ts-buckets/index.ts +++ b/multicloud-ts-buckets/index.ts @@ -4,7 +4,7 @@ import * as aws from "@pulumi/aws"; import * as gcp from "@pulumi/gcp"; // Create an AWS resource (S3 Bucket) -const awsBucket = new aws.s3.Bucket("my-bucket"); +const awsBucket = new aws.s3.BucketV2("my-bucket"); // Create a GCP resource (Storage Bucket) const gcpBucket = new gcp.storage.Bucket("my-bucket"); @@ -14,4 +14,3 @@ export const bucketNames = [ awsBucket.bucket, gcpBucket.name, ]; -