How do you reuse S3 buckets when deploying Lambdas with Serverless?
This has been added in a recent release of Serverless, however that release breaks the deploy functionality on certain operating systems, so the release to go with is 1.1.0.
This is done inside the serverless.yml file by adding deploymentBucket as a field under provider. Example:
provider:
name: aws
runtime: python2.7
stage: dev
region: us-east-1
deploymentBucket: bucketName
iamRoleStatements:
- Effect: "Allow"
Action:
- "*"
Resource: "*"