serverless-deployment-bucket icon indicating copy to clipboard operation
serverless-deployment-bucket copied to clipboard

Cannot deploy from printed serverless.yaml

Open avnerenv0 opened this issue 3 years ago • 0 comments

In Serverless v2 , I cannot deploy from an sls printed yaml. To recreate - this is an example yaml

service: sls-test
frameworkVersion: 2.30.3
enableLocalInstallationFallback: true
plugins:
  - serverless-deployment-bucket
provider:
  name: aws
  runtime: nodejs14.x
  stage: test
  region: 'us-east-1'
  versionFunctions: false
  deploymentBucket:
    name: 'bucket'

Running sls deploy will try to create the bucket. Running

> SLS_DEPRECATION_DISABLE='*' SLS_WARNING_DISABLE='*' sls print | grep -v "Serverless:" > printed.yaml
> sls deploy -c printed.yaml

will result in Could not locate deployment bucket. without attempting to create the deployment bucket.

avnerenv0 avatar Apr 13 '21 13:04 avnerenv0