is there a way to get the bucket name of an s3 buc...
# general
b
is there a way to get the bucket name of an s3 bucket? from the api it looks like there's no property on a bucket that provides just the bucket name
h
Copy code
const mybucket = new aws.s3.Bucket("my-bucket", {
    forceDestroy: true
});


export const bucketName = mybucket.bucket; // create a stack export for bucket name
b
is that the actual bucket name? the API docs say it's the ARN
h
Yes, I believe it's the actual bucket name
t
It is the bucket name
🙂 1