Skip to content

Commit 65385b2

Browse files
authored
update custom bucket stack (#8331)
1 parent 29e9318 commit 65385b2

File tree

1 file changed

+4
-4
lines changed
  • src/pages/[platform]/build-a-backend/storage/use-with-custom-s3

1 file changed

+4
-4
lines changed

src/pages/[platform]/build-a-backend/storage/use-with-custom-s3/index.mdx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ const backend = defineBackend({
107107
const customBucketStack = backend.createStack("custom-bucket-stack");
108108

109109
// Import existing bucket
110-
const customBucket = Bucket.fromBucketAttributes(bucketStack, "MyCustomBucket", {
110+
const customBucket = Bucket.fromBucketAttributes(customBucketStack, "MyCustomBucket", {
111111
bucketArn: "arn:aws:s3:::<bucket-name>",
112112
region: "<region>"
113113
});
@@ -186,7 +186,7 @@ const backend = defineBackend({
186186
const customBucketStack = backend.createStack("custom-bucket-stack");
187187

188188
// Import existing bucket
189-
const customBucket = Bucket.fromBucketAttributes(bucketStack, "MyCustomBucket", {
189+
const customBucket = Bucket.fromBucketAttributes(customBucketStack, "MyCustomBucket", {
190190
bucketArn: "arn:aws:s3:::<bucket-name>",
191191
region: "<region>"
192192
});
@@ -267,7 +267,7 @@ const backend = defineBackend({
267267
const customBucketStack = backend.createStack("custom-bucket-stack");
268268

269269
// Import existing bucket
270-
const customBucket = Bucket.fromBucketAttributes(bucketStack, "MyCustomBucket", {
270+
const customBucket = Bucket.fromBucketAttributes(customBucketStack, "MyCustomBucket", {
271271
bucketArn: "arn:aws:s3:::<bucket-name>",
272272
region: "<region>"
273273
});
@@ -360,7 +360,7 @@ const backend = defineBackend({
360360
const customBucketStack = backend.createStack("custom-bucket-stack");
361361

362362
// Import existing bucket
363-
const customBucket = s3.Bucket.fromBucketAttributes(bucketStack, "MyCustomBucket", {
363+
const customBucket = Bucket.fromBucketAttributes(customBucketStack, "MyCustomBucket", {
364364
bucketArn: "arn:aws:s3:::<bucket-name>",
365365
region: "<region>"
366366
});

0 commit comments

Comments
 (0)