You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session. You switched accounts on another tab or window. Reload to refresh your session. Dismiss alert
LambdaをTerraformで管理してた辛みをApexに乗り換えて解決した〜Datadog Logsの例を添えて〜 大島 雅人 背景: LambdaのソースコードをTerraformで管理するのが辛くなってきた これまでAWS Lambdaのソースコードは、Terraformのarchive_fileを使ってzip化してS3にuploadする、という方式で管理していました。はじめのうちはこれで問題なかったのですが、Lambdaのソースコードに差分は無いのに、zipとしてはなぜか差分が発生しており、terraform applyするたびに差分が発生して辛いといったことが起きるようになってきました。 Terraformで管理してLambdaが実行されるまでを図で説明すると下図のようになります。 ローカル環境でLambdaのコードをS3にuploadするためにTerraformでzip化する
Don’t be FooledYou may be thinking that all it takes to deploy Lambda with Terraform is to: Create a JavaScript file.Create a Terraform configuration file that references that JavaScript file.Apply Terraform.Celebrate!Wrong. Those four steps would technically deploy Lambda, yes. But, by those standards, we’d also be “deploying” if we SSH’d onto servers and copy-and-pasted our source code onto it.
リリース、障害情報などのサービスのお知らせ
最新の人気エントリーの配信
処理を実行中です
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く