0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

Serverless FrameworkでLambdaをいくつか定義してデプロイしていたら、パッケージサイズが1.3GBほどになっていので、削減します。

コード

package:
   excludeDevDependencies: false
   patterns:
     - "!.git/**"
     - "!node_modules/**"
     - "!aws/**"
     - "!__pycache__/**"
     - "!.venv/**"

Python*Lambdaの構成だったので、__pycache__/,.venv/が含まれています。
環境に合わせてpatternsに追記する。文字列の先頭にある!が含めないという意味になる。
これによって1.3G->24mbに🥳

参考

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?