import * as sst from "@serverless-stack/resources" ; export class MainStack extends sst . Stack { constructor ( scope , id , props ? ) { super ( scope , id , props ) ; const bucket = new sst . Bucket ( this , "Bucket" ) ; new sst . Function ( this , "Seed500Files" , { handler : "src/seed-bucket.main" , environment : { BUCKET_NAME : bucket . bucketName , } , permissions : [ bucket ] , } ) ; this . addOutputs ( { BucketName : bucket . bucketName , } ) ; } }