serverless / serverless-google-cloudfunctions

Serverless Google Cloud Functions Plugin – Adds Google Cloud Functions support to the Serverless Framework
https://www.serverless.com
MIT License
271 stars 127 forks source link

Override the default deployment bucket name #236

Open nharlow89 opened 4 years ago

nharlow89 commented 4 years ago

Looks like we do not have any control over the cloud storage bucket for deployments. Parameterizing this would give user's finer control over IAM policies and permissions. For example, current deployments require storage.objects.get, storage.objects.list, storage.objects.create, & storage.objects.delete permissions. I would like to limit these permissions to a pre-defined bucket.

const name = `sls-${service}-${stage}-${timestamp}`;

this.serverless.service.provider.deploymentBucketName = name;