serverless / serverless-client-s3

A plugin to deploy front-end assets to S3 via the Serverless Framework
http://www.serverless.com
171 stars 61 forks source link

Changing s3 bucket #41

Open jobechoi opened 8 years ago

jobechoi commented 8 years ago

Hi serverless team,

Is there a way to configure the serverless deployment to a different s3 bucket?

agilejon commented 8 years ago

I've been doing a few serverless projects and now our s3 account has a bunch of extra buckets. Looks like 1-2 buckets per project. Here's an example, these are s3 bucket names:

admin-privileges-listene-serverlessdeploymentbuck-19hqqmekfbnzr
admin-privileges-listene-serverlessdeploymentbuck-9zbunv6nir5e

It would be awesome if I could specify the bucket to deploy all of our projects into. Would love to be able to specify a bucket and key prefix. Something like: bucket=mycodebits, prefix=projects/lambda