Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bundle size increased 1.69 #7640

Closed
maybephilipp opened this issue Apr 29, 2020 · 1 comment
Closed

Bundle size increased 1.69 #7640

maybephilipp opened this issue Apr 29, 2020 · 1 comment

Comments

@maybephilipp
Copy link

maybephilipp commented Apr 29, 2020

Bug Report

Description

  1. What did you do?
    I set ^1.27.3 version of serverless package in package.json
  2. What happened?
    My bundle size increased from 190mb to 270mb. As I see in the package-lock.json - only serverless updated. I set 1.68.0 version again. Bundle size is 190mb now.
  3. What should've happened?
    Bundle size shouldn't increase its size so much.
  4. What's the content of your serverless.yml file?
service: <service_name>

provider:
  name: aws
  runtime: nodejs10.x
  region: us-west-2
  stage: development
  profile: <profile>
  memorySize: 1536
  timeout: 300
  versionFunctions: false
  constants:
    stage: ${opt:stage, self:provider.stage}
  environment:
    NODE_ENV: ${self:provider.constants.stage}
    # legacy support for <module>
    SERVERLESS_STAGE: ${self:provider.constants.stage}
  iamRoleStatements:
    - Effect: 'Allow'
      Action:
        - 'ses:SendRawEmail'
        - 'sns:Publish'
        - 'lambda:InvokeFunction'
        - 's3:*'
      Resource: '*'
  vpc:
    securityGroupIds:
      - sg-faa0c780
    subnetIds:
      - subnet-d7a95bb1
      - subnet-4f445006

functions:
  api:
    handler: handler.api
    events:
        ...routes
  1. What's the output you get when you use the SLS_DEBUG=* environment variable (e.g. SLS_DEBUG=* serverless deploy)
> SLS_DEBUG=* sls deploy --stage staging

Serverless: Load command interactiveCli
Serverless: Load command config
Serverless: Load command config:credentials
Serverless: Load command config:tabcompletion
Serverless: Load command config:tabcompletion:install
Serverless: Load command config:tabcompletion:uninstall
Serverless: Load command create
Serverless: Load command install
Serverless: Load command package
Serverless: Load command deploy
Serverless: Load command deploy:function
Serverless: Load command deploy:list
Serverless: Load command deploy:list:functions
Serverless: Load command invoke
Serverless: Load command invoke:local
Serverless: Load command info
Serverless: Load command logs
Serverless: Load command metrics
Serverless: Load command print
Serverless: Load command remove
Serverless: Load command rollback
Serverless: Load command rollback:function
Serverless: Load command slstats
Serverless: Load command plugin
Serverless: Load command plugin
Serverless: Load command plugin:install
Serverless: Load command plugin
Serverless: Load command plugin:uninstall
Serverless: Load command plugin
Serverless: Load command plugin:list
Serverless: Load command plugin
Serverless: Load command plugin:search
Serverless: Load command config
Serverless: Load command config:credentials
Serverless: Load command rollback
Serverless: Load command rollback:function
Serverless: Load command upgrade
Serverless: Load command uninstall
Serverless: Load command login
Serverless: Load command logout
Serverless: Load command generate-event
Serverless: Load command test
Serverless: Load command dashboard
Serverless: Load command output
Serverless: Load command output:get
Serverless: Load command output:list
Serverless: Load command param
Serverless: Load command param:get
Serverless: Load command param:list
Serverless: Load command studio
Serverless: Load command dev
Serverless: Invoke deploy
Serverless: Invoke package
Serverless: Invoke aws:common:validate
Serverless: Invoke aws:common:cleanupTempDir
Serverless: Packaging service...
Serverless: Excluding development dependencies...
Serverless: Invoke aws:package:finalize
Serverless: Invoke aws:common:moveArtifactsToPackage
Serverless: Invoke aws:common:validate
Serverless: WARNING: Function api has timeout of 300 seconds, however, it's attached to API Gateway so it's automatically limited to 30 seconds.
Serverless: WARNING: Function api has timeout of 300 seconds, however, it's attached to API Gateway so it's automatically limited to 30 seconds.
Serverless: WARNING: Function api has timeout of 300 seconds, however, it's attached to API Gateway so it's automatically limited to 30 seconds.
Serverless: WARNING: Function api has timeout of 300 seconds, however, it's attached to API Gateway so it's automatically limited to 30 seconds.
Serverless: WARNING: Function api has timeout of 300 seconds, however, it's attached to API Gateway so it's automatically limited to 30 seconds.
Serverless: WARNING: Function api has timeout of 300 seconds, however, it's attached to API Gateway so it's automatically limited to 30 seconds.
Serverless: WARNING: Function api has timeout of 300 seconds, however, it's attached to API Gateway so it's automatically limited to 30 seconds.
Serverless: WARNING: Function api has timeout of 300 seconds, however, it's attached to API Gateway so it's automatically limited to 30 seconds.
Serverless: WARNING: Function api has timeout of 300 seconds, however, it's attached to API Gateway so it's automatically limited to 30 seconds.
Serverless: WARNING: Function api has timeout of 300 seconds, however, it's attached to API Gateway so it's automatically limited to 30 seconds.
Serverless: WARNING: Function api has timeout of 300 seconds, however, it's attached to API Gateway so it's automatically limited to 30 seconds.
Serverless: WARNING: Function api has timeout of 300 seconds, however, it's attached to API Gateway so it's automatically limited to 30 seconds.
Serverless: WARNING: Function api has timeout of 300 seconds, however, it's attached to API Gateway so it's automatically limited to 30 seconds.
Serverless: WARNING: Function api has timeout of 300 seconds, however, it's attached to API Gateway so it's automatically limited to 30 seconds.
Serverless: WARNING: Function api has timeout of 300 seconds, however, it's attached to API Gateway so it's automatically limited to 30 seconds.
Serverless: WARNING: Function api has timeout of 300 seconds, however, it's attached to API Gateway so it's automatically limited to 30 seconds.
Serverless: WARNING: Function api has timeout of 300 seconds, however, it's attached to API Gateway so it's automatically limited to 30 seconds.
Serverless: WARNING: Function api has timeout of 300 seconds, however, it's attached to API Gateway so it's automatically limited to 30 seconds.
Serverless: WARNING: Function api has timeout of 300 seconds, however, it's attached to API Gateway so it's automatically limited to 30 seconds.
Serverless: WARNING: Function api has timeout of 300 seconds, however, it's attached to API Gateway so it's automatically limited to 30 seconds.
Serverless: WARNING: Function api has timeout of 300 seconds, however, it's attached to API Gateway so it's automatically limited to 30 seconds.
Serverless: WARNING: Function api has timeout of 300 seconds, however, it's attached to API Gateway so it's automatically limited to 30 seconds.
Serverless: WARNING: Function api has timeout of 300 seconds, however, it's attached to API Gateway so it's automatically limited to 30 seconds.
Serverless: WARNING: Function api has timeout of 300 seconds, however, it's attached to API Gateway so it's automatically limited to 30 seconds.
Serverless: WARNING: Function api has timeout of 300 seconds, however, it's attached to API Gateway so it's automatically limited to 30 seconds.
Serverless: WARNING: Function api has timeout of 300 seconds, however, it's attached to API Gateway so it's automatically limited to 30 seconds.
Serverless: WARNING: Function api has timeout of 300 seconds, however, it's attached to API Gateway so it's automatically limited to 30 seconds.
Serverless: WARNING: Function api has timeout of 300 seconds, however, it's attached to API Gateway so it's automatically limited to 30 seconds.
Serverless: WARNING: Function api has timeout of 300 seconds, however, it's attached to API Gateway so it's automatically limited to 30 seconds.
Serverless: WARNING: Function api has timeout of 300 seconds, however, it's attached to API Gateway so it's automatically limited to 30 seconds.
Serverless: WARNING: Function api has timeout of 300 seconds, however, it's attached to API Gateway so it's automatically limited to 30 seconds.
Serverless: WARNING: Function api has timeout of 300 seconds, however, it's attached to API Gateway so it's automatically limited to 30 seconds.
Serverless: WARNING: Function api has timeout of 300 seconds, however, it's attached to API Gateway so it's automatically limited to 30 seconds.
Serverless: WARNING: Function api has timeout of 300 seconds, however, it's attached to API Gateway so it's automatically limited to 30 seconds.
Serverless: WARNING: Function api has timeout of 300 seconds, however, it's attached to API Gateway so it's automatically limited to 30 seconds.
Serverless: WARNING: Function api has timeout of 300 seconds, however, it's attached to API Gateway so it's automatically limited to 30 seconds.
Serverless: WARNING: Function api has timeout of 300 seconds, however, it's attached to API Gateway so it's automatically limited to 30 seconds.
Serverless: WARNING: Function api has timeout of 300 seconds, however, it's attached to API Gateway so it's automatically limited to 30 seconds.
Serverless: WARNING: Function api has timeout of 300 seconds, however, it's attached to API Gateway so it's automatically limited to 30 seconds.
Serverless: WARNING: Function api has timeout of 300 seconds, however, it's attached to API Gateway so it's automatically limited to 30 seconds.
Serverless: WARNING: Function api has timeout of 300 seconds, however, it's attached to API Gateway so it's automatically limited to 30 seconds.
Serverless: WARNING: Function api has timeout of 300 seconds, however, it's attached to API Gateway so it's automatically limited to 30 seconds.
Serverless: WARNING: Function api has timeout of 300 seconds, however, it's attached to API Gateway so it's automatically limited to 30 seconds.
Serverless: WARNING: Function api has timeout of 300 seconds, however, it's attached to API Gateway so it's automatically limited to 30 seconds.
Serverless: WARNING: Function api has timeout of 300 seconds, however, it's attached to API Gateway so it's automatically limited to 30 seconds.
Serverless: WARNING: Function api has timeout of 300 seconds, however, it's attached to API Gateway so it's automatically limited to 30 seconds.
Serverless: WARNING: Function api has timeout of 300 seconds, however, it's attached to API Gateway so it's automatically limited to 30 seconds.
Serverless: WARNING: Function api has timeout of 300 seconds, however, it's attached to API Gateway so it's automatically limited to 30 seconds.
Serverless: WARNING: Function api has timeout of 300 seconds, however, it's attached to API Gateway so it's automatically limited to 30 seconds.
Serverless: WARNING: Function api has timeout of 300 seconds, however, it's attached to API Gateway so it's automatically limited to 30 seconds.
Serverless: WARNING: Function api has timeout of 300 seconds, however, it's attached to API Gateway so it's automatically limited to 30 seconds.
Serverless: WARNING: Function api has timeout of 300 seconds, however, it's attached to API Gateway so it's automatically limited to 30 seconds.
Serverless: Invoke aws:deploy:deploy
Serverless: [AWS cloudformation 200 0.957s 0 retries] describeStacks({ StackName: 'bla-api-staging' })
Serverless: [AWS cloudformation 200 0.844s 0 retries] describeStackResource({ StackName: 'bla-api-staging',
  LogicalResourceId: 'ServerlessDeploymentBucket' })
Serverless: [AWS s3 200 1.005s 0 retries] listObjectsV2({ Bucket: 'bucket-url',
  Prefix: 'serverless/bla-api/staging' })
Serverless: [AWS s3 200 0.866s 0 retries] headObject({ Bucket: 'bucket-url',
  Key:
   'serverless/bla-api/staging/1588185472178-2020-04-29T18:37:52.178Z/bla-api.zip' })
Serverless: [AWS s3 200 0.879s 0 retries] headObject({ Bucket: 'bucket-url',
  Key:
   'serverless/bla-api/staging/1588185472178-2020-04-29T18:37:52.178Z/compiled-cloudformation-template.json' })
Serverless: [AWS lambda 200 0.925s 0 retries] getFunction({ FunctionName: 'bla-api-staging-api' })
Serverless: [AWS sts 200 0.603s 0 retries] getCallerIdentity({})
Serverless: Uploading CloudFormation file to S3...
Serverless: [AWS s3 200 1.32s 0 retries] putObject({ Body:
   <Buffer 7b 22 41 57 53 54 65 6d 70 6c 61 74 65 46 6f 72 6d 61 74 56 65 72 73 69 6f 6e 22 3a 22 32 30 31 30 2d 30 39 2d 30 39 22 2c 22 44 65 73 63 72 69 70 74 ... >,
  Bucket: 'bucket-url',
  Key:
   'serverless/bla-api/staging/1588186749369-2020-04-29T18:59:09.369Z/compiled-cloudformation-template.json',
  ContentType: 'application/json',
  Metadata:
   { filesha256: 'jxxW9YELNptIFkEsg8C201+LqdrStjB80YPDIknElhk=' } })
Serverless: Uploading artifacts...
Serverless: Uploading service bla-api.zip file to S3 (82.75 MB)...
Serverless: [AWS s3 200 1.225s 0 retries] createMultipartUpload({ Bucket: 'bucket-url',
  Key:
   'serverless/bla-api/staging/1588186749369-2020-04-29T18:59:09.369Z/bla-api.zip',
  ContentType: 'application/zip',
  Metadata:
   { filesha256: '/iSObsDd8eJvfl9RxSej86SiV9QHTcMRKMbStRcLrX8=' } })
Serverless: [AWS s3 200 3.708s 0 retries] uploadPart({ Body:
   <Buffer 50 4b 03 04 14 00 08 00 08 00 00 00 21 00 00 00 00 00 00 00 00 00 00 00 00 00 04 00 00 00 2e 65 6e 76 4d 8e 49 93 aa 30 14 85 f7 fe 97 ee 97 30 24 64 ... >,
  ContentLength: 5242880,
  PartNumber: 1,
  Bucket: 'bucket-url',
  Key:
   'serverless/bla-api/staging/1588186749369-2020-04-29T18:59:09.369Z/bla-api.zip',
  UploadId:
   '<uploadId>' })
Serverless: [AWS s3 200 3.912s 0 retries] uploadPart({ Body:
   <Buffer 1c 6f 1e 80 5d d2 8c ba 46 65 34 04 60 b3 05 3f 12 af 69 2b a2 b3 70 b3 25 23 20 28 8f a1 95 10 95 1b a5 87 11 33 30 83 f7 71 c1 00 c0 4a 1c 2d d9 86 ... >,
  ContentLength: 5242880,
  PartNumber: 2,
  Bucket: 'bucket-url',
  Key:
   'serverless/bla-api/staging/1588186749369-2020-04-29T18:59:09.369Z/bla-api.zip',
  UploadId:
   '<uploadId>' })
Serverless: [AWS s3 200 4.555s 0 retries] uploadPart({ Body:
   <Buffer ba e9 17 e1 f5 2f 4c e4 c7 02 b1 e9 20 45 91 6d 78 98 3c 99 35 a1 17 1d 9c df ea 1e 7e 7f ba 80 8d f2 51 1e 8a 8a e7 35 3c 71 e6 6d a3 d1 31 8e 60 63 ... >,
  ContentLength: 5242880,
  PartNumber: 5,
  Bucket: 'bucket-url',
  Key:
   'serverless/bla-api/staging/1588186749369-2020-04-29T18:59:09.369Z/bla-api.zip',
  UploadId:
   '<uploadId>' })
Serverless: [AWS s3 200 4.139s 0 retries] uploadPart({ Body:
   <Buffer e7 d2 6e 31 96 2d 11 b3 ba 08 5e eb 91 3e 70 ce 78 62 f9 1d d5 20 54 1c ea ae c7 ff e3 ba e7 9f 61 57 34 af 58 9e 5f 9c 00 54 b8 08 07 15 cb 26 54 51 ... >,
  ContentLength: 5242880,
  PartNumber: 7,
  Bucket: 'bucket-url',
  Key:
   'serverless/bla-api/staging/1588186749369-2020-04-29T18:59:09.369Z/bla-api.zip',
  UploadId:
   '<uploadId>' })
Serverless: [AWS s3 200 9.218s 0 retries] uploadPart({ Body:
   <Buffer 6d 6f 64 75 6c 65 73 2f 63 6f 72 65 2d 6a 73 2f 69 6e 74 65 72 6e 61 6c 73 2f 6f 62 6a 65 63 74 2d 64 65 66 69 6e 65 2d 70 72 6f 70 65 72 74 79 2e 6a ... >,
  ContentLength: 5242880,
  PartNumber: 6,
  Bucket: 'bucket-url',
  Key:
   'serverless/bla-api/staging/1588186749369-2020-04-29T18:59:09.369Z/bla-api.zip',
  UploadId:
   '<uploadId>' })
Serverless: [AWS s3 200 15.931s 0 retries] uploadPart({ Body:
   <Buffer 78 f1 9d b3 1b 23 40 b4 91 89 00 d1 79 b0 32 39 3d 54 83 d7 64 44 82 ec 9a 8c 00 64 33 fa 11 20 da 0f 4a 24 53 a0 eb a2 d2 5f c3 ee 4d 88 6e 02 ed e8 ... >,
  ContentLength: 5242880,
  PartNumber: 3,
  Bucket: 'bucket-url',
  Key:
   'serverless/bla-api/staging/1588186749369-2020-04-29T18:59:09.369Z/bla-api.zip',
  UploadId:
   '<uploadId>' })
Serverless: [AWS s3 200 4.71s 0 retries] uploadPart({ Body:
   <Buffer 28 bd 35 66 49 8f f9 91 ec 7c 63 b4 03 85 94 74 0e 53 e2 84 43 6b 46 8e 62 87 c5 8f e7 aa 52 a8 43 03 da a6 44 65 76 46 88 64 38 e0 dd 63 43 1e e4 ad ... >,
  ContentLength: 5242880,
  PartNumber: 8,
  Bucket: 'bucket-url',
  Key:
   'serverless/bla-api/staging/1588186749369-2020-04-29T18:59:09.369Z/bla-api.zip',
  UploadId:
   '<uploadId>' })
Serverless: [AWS s3 200 4.062s 0 retries] uploadPart({ Body:
   <Buffer ab f3 22 8b ae 3f e1 79 3e 84 32 63 3b bf c3 97 26 1d b8 4b 0f 1e 26 46 16 f6 78 f8 12 38 82 c6 cb 4a 4b 19 2f e8 66 5b 9d f4 c1 59 e4 db 05 ad e3 c3 ... >,
  ContentLength: 5242880,
  PartNumber: 9,
  Bucket: 'bucket-url',
  Key:
   'serverless/bla-api/staging/1588186749369-2020-04-29T18:59:09.369Z/bla-api.zip',
  UploadId:
   '<uploadId>' })
Serverless: [AWS s3 200 15.884s 0 retries] uploadPart({ Body:
   <Buffer 4a 70 4e 3c bf d5 29 42 f0 c8 9c 3a 94 3e 87 82 6d 1e 10 22 87 92 ff f8 f7 ff b7 7b 73 79 79 75 dc ed fe c7 bf ff 7f 32 0c 51 1f a3 58 74 9f 0c 90 df ... >,
  ContentLength: 5242880,
  PartNumber: 4,
  Bucket: 'bucket-url',
  Key:
   'serverless/bla-api/staging/1588186749369-2020-04-29T18:59:09.369Z/bla-api.zip',
  UploadId:
   '<uploadId>' })
Serverless: [AWS s3 200 3.771s 0 retries] uploadPart({ Body:
   <Buffer e8 87 d0 c2 6c d4 52 91 e2 f3 88 7d c5 f6 48 63 60 5d 9d 40 18 65 ef 34 21 7c 20 ac 7b 22 5c be 74 65 c7 15 b3 2b 01 e3 9e 35 4e ed 62 cf cf 9d 07 5c ... >,
  ContentLength: 5242880,
  PartNumber: 11,
  Bucket: 'bucket-url',
  Key:
   'serverless/bla-api/staging/1588186749369-2020-04-29T18:59:09.369Z/bla-api.zip',
  UploadId:
   '<uploadId>' })
Serverless: [AWS s3 200 3.823s 0 retries] uploadPart({ Body:
   <Buffer 46 aa 48 7e df ed 05 49 07 27 6c 8d 01 c0 b4 0d 61 22 0c 29 5c 2a 3f 57 22 04 4d bf 63 c2 e2 f0 99 67 db ae 3d da a0 81 d7 f7 cd a7 10 eb 31 ce 27 1b ... >,
  ContentLength: 5242880,
  PartNumber: 12,
  Bucket: 'bucket-url',
  Key:
   'serverless/bla-api/staging/1588186749369-2020-04-29T18:59:09.369Z/bla-api.zip',
  UploadId:
   '<uploadId>' })
Serverless: [AWS s3 200 3.839s 0 retries] uploadPart({ Body:
   <Buffer 11 6f 8d 5f 0e 7a 9c 9d 20 f7 a9 3a 30 3a a4 41 b7 2f c5 3d f3 f7 15 8d 50 ba de 24 5b c7 db 14 74 2f 25 4f 86 a1 95 d6 1c dd 05 db b2 f3 d2 aa c6 95 ... >,
  ContentLength: 5242880,
  PartNumber: 13,
  Bucket: 'bucket-url',
  Key:
   'serverless/bla-api/staging/1588186749369-2020-04-29T18:59:09.369Z/bla-api.zip',
  UploadId:
   '<uploadId>' })
Serverless: [AWS s3 200 3.407s 0 retries] uploadPart({ Body:
   <Buffer a0 cb 0c 1b 75 1c a0 d4 36 2c 9d 36 5a b6 bc ba 3b 98 fa 9a 2d 27 dd 65 0a ff 66 d7 bd e2 79 b3 6c 9a 20 c2 9c 9d 00 fc 5f 75 19 6a 44 32 ea 24 12 1d ... >,
  ContentLength: 5242880,
  PartNumber: 14,
  Bucket: 'bucket-url',
  Key:
   'serverless/bla-api/staging/1588186749369-2020-04-29T18:59:09.369Z/bla-api.zip',
  UploadId:
   '<uploadId>' })
Serverless: [AWS s3 200 8.766s 0 retries] uploadPart({ Body:
   <Buffer 02 c9 2c 02 22 2d d9 9f 0c e4 18 4c e8 0a a8 70 28 49 1c a7 52 7f 25 78 f9 5c 2b f7 be 1c b0 87 ad c1 02 b6 3b 90 3d 2a 34 f8 6e ff 8c 54 67 be f5 c5 ... >,
  ContentLength: 5242880,
  PartNumber: 10,
  Bucket: 'bucket-url',
  Key:
   'serverless/bla-api/staging/1588186749369-2020-04-29T18:59:09.369Z/bla-api.zip',
  UploadId:
   '<uploadId>' })
Serverless: [AWS s3 200 2.908s 0 retries] uploadPart({ Body:
   <Buffer 00 08 00 00 00 21 00 7e 50 c6 0e 29 01 00 00 4e 02 00 00 46 00 00 00 00 00 00 00 00 00 20 00 a4 81 36 15 66 00 6e 6f 64 65 5f 6d 6f 64 75 6c 65 73 2f ... >,
  ContentLength: 2883506,
  PartNumber: 17,
  Bucket: 'bucket-url',
  Key:
   'serverless/bla-api/staging/1588186749369-2020-04-29T18:59:09.369Z/bla-api.zip',
  UploadId:
   '<uploadId>' })
Serverless: [AWS s3 200 3.951s 0 retries] uploadPart({ Body:
   <Buffer 86 45 32 e5 52 eb 44 a4 d2 a0 ae 62 90 b3 39 c9 58 1e d9 b2 38 bf 58 7b 97 6d dc 8a 88 f4 38 38 65 84 40 dc 91 51 89 0b 81 a2 8e 75 b2 b2 71 64 6f 25 ... >,
  ContentLength: 5242880,
  PartNumber: 16,
  Bucket: 'bucket-url',
  Key:
   'serverless/bla-api/staging/1588186749369-2020-04-29T18:59:09.369Z/bla-api.zip',
  UploadId:
   '<uploadId>' })
Serverless: [AWS s3 200 12.858s 0 retries] uploadPart({ Body:
   <Buffer 5c c2 25 a4 54 e9 a8 5d 96 76 a3 98 d5 22 a5 8a 6d 46 41 2c 1a d6 f5 62 72 ba 68 5a be ab c3 0a 3a e8 97 11 75 1d 88 da 58 ce f4 70 41 9f 47 70 6a 87 ... >,
  ContentLength: 5242880,
  PartNumber: 15,
  Bucket: 'bucket-url',
  Key:
   'serverless/bla-api/staging/1588186749369-2020-04-29T18:59:09.369Z/bla-api.zip',
  UploadId:
   '<uploadId>' })
Serverless: [AWS s3 200 1.327s 0 retries] completeMultipartUpload({ MultipartUpload:
   { Parts:
      [ { ETag: '"2b30bde4f4488982183ce63a18da973a"', PartNumber: 1 },
        { ETag: '"0bb9f6433d494c07789af6e28e712d60"', PartNumber: 2 },
        { ETag: '"a37501ada678355cb5f4ba8beb239220"', PartNumber: 3 },
        { ETag: '"920137dfb4bac5880bb4b85c496a4329"', PartNumber: 4 },
        { ETag: '"13e6916bbafaf12fa77b43b45a346162"', PartNumber: 5 },
        { ETag: '"c1e7e112eb215e17ab357ced726350d9"', PartNumber: 6 },
        { ETag: '"84bfb96e513f6904f2661400ac4b5b6c"', PartNumber: 7 },
        { ETag: '"27e34fb4eb7cbc0cbc70034807dd78d4"', PartNumber: 8 },
        { ETag: '"c4980ecf61968de657926c090ae599ee"', PartNumber: 9 },
        { ETag: '"b9be13b01f5486539d5c3ade894b0a90"', PartNumber: 10 },
        { ETag: '"b1cc354005d8c88c9c7c4fcea842742b"', PartNumber: 11 },
        { ETag: '"b2c37b8e5369f59a6f56003079597436"', PartNumber: 12 },
        { ETag: '"8ec930599e721daa67104e152245a4b3"', PartNumber: 13 },
        { ETag: '"ba65b0678904eea722667dab7accf117"', PartNumber: 14 },
        { ETag: '"0e5ce46f0dca5b36d5f2addf9e908dcd"', PartNumber: 15 },
        { ETag: '"010958e5627c4cafd87578e6d9371aa1"', PartNumber: 16 },
        { ETag: '"fa71e9e9cedd9e185ad885b74a5873a5"', PartNumber: 17 },
        [length]: 17 ] },
  Bucket: 'bucket-url',
  Key:
   'serverless/bla-api/staging/1588186749369-2020-04-29T18:59:09.369Z/bla-api.zip',
  UploadId:
   '<uploadId>' })
Serverless: Validating template...
Serverless: [AWS cloudformation 200 1.072s 0 retries] validateTemplate({ TemplateURL:
   'https://s3.amazonaws.com/bucket-url/serverless/bla-api/staging/1588186749369-2020-04-29T18:59:09.369Z/compiled-cloudformation-template.json' })
Serverless: Updating Stack...
Serverless: [AWS cloudformation 200 1.337s 0 retries] updateStack({ StackName: 'bla-api-staging',
  Capabilities: [ 'CAPABILITY_IAM', 'CAPABILITY_NAMED_IAM', [length]: 2 ],
  Parameters: [ [length]: 0 ],
  TemplateURL:
   'https://s3.amazonaws.com/bucket-url/serverless/bla-api/staging/1588186749369-2020-04-29T18:59:09.369Z/compiled-cloudformation-template.json',
  Tags: [ { Key: 'STAGE', Value: 'staging' }, [length]: 1 ] })
Serverless: Checking Stack update progress...
Serverless: [AWS cloudformation 200 2.277s 0 retries] describeStackEvents({ StackName:
   'arn:aws:cloudformation:us-west-2:300518318957:stack/bla-api-staging/fec07710-99d9-11e9-9fe9-0ad236afdc80' })
.Serverless: [AWS cloudformation 200 1.592s 0 retries] describeStackEvents({ StackName:
   'arn:aws:cloudformation:us-west-2:300518318957:stack/bla-api-staging/fec07710-99d9-11e9-9fe9-0ad236afdc80' })
...
Serverless: Operation failed!
Serverless: View the full error output: <url>
 
  Serverless Error ---------------------------------------
 
  ServerlessError: An error occurred: ApiLambdaFunction - Unzipped size must be smaller than 262144000 bytes (Service: AWSLambdaInternal; Status Code: 400; Error Code: InvalidParameterValueException; Request ID: 731cb454-fc88-47b0-8a13-9d824762cc5d).
      at provider.request.then.data (/var/lib/jenkins/workspace/pipelines/back/node_modules/serverless/lib/plugins/aws/lib/monitorStack.js:125:33)
  From previous event:
      at AwsDeploy.monitorStack (/var/lib/jenkins/workspace/pipelines/back/node_modules/serverless/lib/plugins/aws/lib/monitorStack.js:28:12)
      at provider.request.then.cfData (/var/lib/jenkins/workspace/pipelines/back/node_modules/serverless/lib/plugins/aws/lib/updateStack.js:107:28)
  From previous event:
      at AwsDeploy.update (/var/lib/jenkins/workspace/pipelines/back/node_modules/serverless/lib/plugins/aws/lib/updateStack.js:107:8)
  From previous event:
      at AwsDeploy.BbPromise.bind.then (/var/lib/jenkins/workspace/pipelines/back/node_modules/serverless/lib/plugins/aws/lib/updateStack.js:121:35)
  From previous event:
      at AwsDeploy.updateStack (/var/lib/jenkins/workspace/pipelines/back/node_modules/serverless/lib/plugins/aws/lib/updateStack.js:117:33)
  From previous event:
      at AwsDeploy.BbPromise.bind.then (/var/lib/jenkins/workspace/pipelines/back/node_modules/serverless/lib/plugins/aws/deploy/index.js:127:39)
  From previous event:
      at Object.aws:deploy:deploy:updateStack [as hook] (/var/lib/jenkins/workspace/pipelines/back/node_modules/serverless/lib/plugins/aws/deploy/index.js:123:30)
      at BbPromise.reduce (/var/lib/jenkins/workspace/pipelines/back/node_modules/serverless/lib/classes/PluginManager.js:490:55)
  From previous event:
      at PluginManager.invoke (/var/lib/jenkins/workspace/pipelines/back/node_modules/serverless/lib/classes/PluginManager.js:490:22)
      at PluginManager.spawn (/var/lib/jenkins/workspace/pipelines/back/node_modules/serverless/lib/classes/PluginManager.js:510:17)
      at AwsDeploy.BbPromise.bind.then (/var/lib/jenkins/workspace/pipelines/back/node_modules/serverless/lib/plugins/aws/deploy/index.js:93:48)
  From previous event:
      at Object.deploy:deploy [as hook] (/var/lib/jenkins/workspace/pipelines/back/node_modules/serverless/lib/plugins/aws/deploy/index.js:89:30)
      at BbPromise.reduce (/var/lib/jenkins/workspace/pipelines/back/node_modules/serverless/lib/classes/PluginManager.js:490:55)
  From previous event:
      at PluginManager.invoke (/var/lib/jenkins/workspace/pipelines/back/node_modules/serverless/lib/classes/PluginManager.js:490:22)
      at getHooks.reduce.then (/var/lib/jenkins/workspace/pipelines/back/node_modules/serverless/lib/classes/PluginManager.js:525:24)
  From previous event:
      at PluginManager.run (/var/lib/jenkins/workspace/pipelines/back/node_modules/serverless/lib/classes/PluginManager.js:525:8)
      at variables.populateService.then (/var/lib/jenkins/workspace/pipelines/back/node_modules/serverless/lib/Serverless.js:133:33)
      at runCallback (timers.js:705:18)
      at tryOnImmediate (timers.js:676:5)
      at processImmediate (timers.js:658:5)
      at process.topLevelDomainCallback (domain.js:126:23)
  From previous event:
      at Serverless.run (/var/lib/jenkins/workspace/pipelines/back/node_modules/serverless/lib/Serverless.js:120:74)
      at serverless.init.then (/var/lib/jenkins/workspace/pipelines/back/node_modules/serverless/bin/serverless.js:82:30)
      at /var/lib/jenkins/workspace/pipelines/back/node_modules/graceful-fs/graceful-fs.js:144:16
      at /var/lib/jenkins/workspace/pipelines/back/node_modules/graceful-fs/graceful-fs.js:61:14
      at FSReqWrap.args [as oncomplete] (fs.js:140:20)
  From previous event:
      at initializeErrorReporter.then (/var/lib/jenkins/workspace/pipelines/back/node_modules/serverless/bin/serverless.js:82:8)
      at runCallback (timers.js:705:18)
      at tryOnImmediate (timers.js:676:5)
      at processImmediate (timers.js:658:5)
      at process.topLevelDomainCallback (domain.js:126:23)
  From previous event:
      at Object.<anonymous> (/var/lib/jenkins/workspace/pipelines/back/node_modules/serverless/bin/serverless.js:71:4)
      at Module._compile (internal/modules/cjs/loader.js:778:30)
      at Object.Module._extensions..js (internal/modules/cjs/loader.js:789:10)
      at Module.load (internal/modules/cjs/loader.js:653:32)
      at tryModuleLoad (internal/modules/cjs/loader.js:593:12)
      at Function.Module._load (internal/modules/cjs/loader.js:585:3)
      at Function.Module.runMain (internal/modules/cjs/loader.js:831:12)
      at startup (internal/bootstrap/node.js:283:19)
      at bootstrapNodeJSCore (internal/bootstrap/node.js:623:3)
 
  Get Support --------------------------------------------
     Docs:          docs.serverless.com
     Bugs:          github.com/serverless/serverless/issues
     Issues:        forum.serverless.com
 
  Your Environment Information ---------------------------
     Operating System:          linux
     Node Version:              10.20.1
     Framework Version:         1.69.0
     Plugin Version:            3.6.8
     SDK Version:               2.3.0
     Components Version:        2.30.4
 
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! bla-api@3.3.4 deploy:staging: `SLS_DEBUG=* sls deploy --stage staging`
npm ERR! Exit status 1

Similar or dependent issues:

none

@medikoo
Copy link
Contributor

medikoo commented Apr 30, 2020

@philippmalkov great thanks for report. While with v1.69 no dependencies were added or upgraded, and in general that update was light, as I investigated problem lies in
@servelress/enterprise-plugin which started including TypeScript.

I've opened a dedicated issue over there: serverless/dashboard-plugin#423 Please follow the progress of the issue over there

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants