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?

More than 5 years have passed since last update.

是丈は心得おくべし:AWS

0
Last updated at Posted at 2019-11-22

深く後悔したことをメモしていく。

AWSのサービスと関係するコードは、最初の1行からAWS上でユニットテストすべし

ユニットテストは手元で走らせたいのが人情だが、やってはならない。うっかりmotoを信じた私が馬鹿だった。motoは何をしてもまったくエラーを返さない。

Lambdaでは共有メモリが使えない

そのためmultiprocessingPoolQueueが使えない。そのためlokyも使えない。

Parallel Processing on AWS Lambda with Python using Multiprocessing

CodeBuildでCodeCommitのリポジトリをソースにすると、普通にgit cloneする。しかしCodePipelineでCodeBuildをキックすると、CodeCommitのリポジトリをZIPファイルとして取得するので、.gitディレクトリ等が存在せず、Gitメタデータが使えない

知らなければ絶対に思いつかない驚天動地のクソ仕様。AWSに限らず、誰か「知らなければ必ずハマる驚天動地のクソ仕様」というまとめを作ってください。

随時追記する予定。

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?