S3 from existing
🔥 Import
import * as s3 from 'aws-cdk-lib/aws-s3';
🔥 Code
const myBucket = s3.Bucket.fromBucketArn(
this,
'imported-bucket',
'EXTERNAL_BUCKET_ARN',
);
const myBucket = s3.Bucket.fromBucketName(
this,
'imported-bucket',
'EXTERNAL_BUCKET_NAME',
);
Last updated