@@ -107,7 +107,7 @@ const backend = defineBackend({
107
107
const customBucketStack = backend .createStack (" custom-bucket-stack" );
108
108
109
109
// Import existing bucket
110
- const customBucket = Bucket .fromBucketAttributes (bucketStack , " MyCustomBucket" , {
110
+ const customBucket = Bucket .fromBucketAttributes (customBucketStack , " MyCustomBucket" , {
111
111
bucketArn: " arn:aws:s3:::<bucket-name>" ,
112
112
region: " <region>"
113
113
});
@@ -186,7 +186,7 @@ const backend = defineBackend({
186
186
const customBucketStack = backend .createStack (" custom-bucket-stack" );
187
187
188
188
// Import existing bucket
189
- const customBucket = Bucket .fromBucketAttributes (bucketStack , " MyCustomBucket" , {
189
+ const customBucket = Bucket .fromBucketAttributes (customBucketStack , " MyCustomBucket" , {
190
190
bucketArn: " arn:aws:s3:::<bucket-name>" ,
191
191
region: " <region>"
192
192
});
@@ -267,7 +267,7 @@ const backend = defineBackend({
267
267
const customBucketStack = backend .createStack (" custom-bucket-stack" );
268
268
269
269
// Import existing bucket
270
- const customBucket = Bucket .fromBucketAttributes (bucketStack , " MyCustomBucket" , {
270
+ const customBucket = Bucket .fromBucketAttributes (customBucketStack , " MyCustomBucket" , {
271
271
bucketArn: " arn:aws:s3:::<bucket-name>" ,
272
272
region: " <region>"
273
273
});
@@ -360,7 +360,7 @@ const backend = defineBackend({
360
360
const customBucketStack = backend .createStack (" custom-bucket-stack" );
361
361
362
362
// Import existing bucket
363
- const customBucket = s3 . Bucket .fromBucketAttributes (bucketStack , " MyCustomBucket" , {
363
+ const customBucket = Bucket .fromBucketAttributes (customBucketStack , " MyCustomBucket" , {
364
364
bucketArn: " arn:aws:s3:::<bucket-name>" ,
365
365
region: " <region>"
366
366
});
0 commit comments