title: Unzipped size must be smaller than 262144000 bytes - AWS Lambda Error
body: <p>I have tried to upload my application using servless/lambda function AWS, but i got this issue:</p>
  
  <blockquote>
    <p>An error occurred: AppLambdaFunction - Unzipped size must be smaller than 262144000 bytes (Service: AWSLambdaInternal; Status Code: 400; Error Code: InvalidParameterValueException; Request ID: 8ea0d887-5743-4db1-96cd-6c5efa57b081).</p>
  </blockquote>
  
  <p>What is the best way to resolve it?</p>
  
  <p>Look my dependencies:</p>
  
  <pre><code>  "dependencies": {
      "ethereumjs-tx": "^1.3.7",
      "aws-sdk": "^2.4.52",
      "body-parser": "^1.18.3",
      "compression": "^1.7.4",
      "consign": "^0.1.6",
      "cors": "^2.8.5",
      "express": "^4.16.4",
      "helmet": "^3.16.0",
      "moment": "^2.24.0",
      "openzeppelin-solidity": "^2.3.0",
      "serverless": "^1.48.2",
      "serverless-http": "^1.9.1",
      "serverless-offline": "^4.9.4",
      "truffle": "^5.1.9",
      "truffle-hdwallet-provider": "^1.0.17",
      "web3": "^1.2.5-rc.0"
    },
  </code></pre>
  
  <p>Serverless.yml:</p>
  
  <pre><code>provider:
    name: aws
    runtime: nodejs8.10
    stage: v1
    region: us-east-1
    timeout: 30
    memorySize: 512
    package:
      excludeDevDependencies: true
      exclude:
        - .git/**
        - .vscode/**        
        - venv/**
  
  functions:
    app:  
      handler: handler.run
      events:
        - http:
            path: /
            method: ANY
            cors: true
        - http:
            path: /{proxy+}
            method: ANY
            cors: true
  
  plugins:
    - serverless-offline  
  </code></pre>