https://pulumi.com logo
#general
Title
# general
b

bitter-dentist-28132

02/05/2020, 6:52 PM
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

handsome-actor-1155

02/05/2020, 7:00 PM
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

bitter-dentist-28132

02/05/2020, 7:26 PM
is that the actual bucket name? the API docs say it's the ARN
h

handsome-actor-1155

02/05/2020, 7:37 PM
Yes, I believe it's the actual bucket name
t

tall-librarian-49374

02/05/2020, 7:46 PM
It is the bucket name
🙂 1
3 Views