Matthew Purdon
08/05/2021, 3:10 PMfromBucket[Name|Arn]
? I know the general philosophy is to let CDK generate names (especially things that will generate a CW log group) but is there a way to get a handle to an existing bucket?Frank
Matthew Purdon
08/05/2021, 3:12 PMFrank
import * as s3 from "@aws-cdk/aws-s3";
const bucket = s3.Bucket.fromBucketName(scope, id, bucketName);
Matthew Purdon
08/05/2021, 3:15 PMFrank
const bucket = sst.Bucket.fromName(this, "Bucket", bucketName);
Matthew Purdon
08/05/2021, 3:19 PMFrank
Matthew Purdon
08/05/2021, 3:20 PMFrank