This message was deleted.
# typescript
s
This message was deleted.
p
Copy code
export let s3BucketName: string;
if(){
  s3Bucketname = s3Bucket.name
}
Will get you an undefined in the export when you do not have a bucket, but that is easy to check later on.
e
thanks!
also had to declare resource itself on the top level to be able use it in other places