getlift / lift

Expanding Serverless Framework beyond functions using the AWS CDK
MIT License
916 stars 113 forks source link

Custom Upload S3 for Origin server-side-website #357

Open revanhernandy opened 1 year ago

revanhernandy commented 1 year ago

Start from the Use-case

Hello,

Is it possible to make 1 s3 into 5 different projects for Server-side websites?

Let says : BucketName : live-project Path/Folder:

I have a construct like this for the prod branch constructs: website: type: server-side-website assets: '/css/': prod/css '/js/': prod/js '/images/*': prod/images

I think the only question is, how to upload the package into the bucket with the folder, and can it be re-used the existing bucket?

Example Config

No response

Implementation Idea

constructs: website: type: server-side-website uploadPath: prod/ assets: '/css/': prod/css '/js/': prod/js '/images/*': prod/images