Terraform を使用して監査ログトリガーで Cloud Functions(第 2 世代)をデプロイする
bookmark_borderbookmark
コレクションでコンテンツを整理
必要に応じて、コンテンツの保存と分類を行います。
リソースでイベント ドリブンの Cloud Functions(第 2 世代)をデプロイするための完全な Terraform 構成
コードサンプル
特に記載のない限り、このページのコンテンツはクリエイティブ・コモンズの表示 4.0 ライセンスにより使用許諾されます。コードサンプルは Apache 2.0 ライセンスにより使用許諾されます。詳しくは、Google Developers サイトのポリシーをご覧ください。Java は Oracle および関連会社の登録商標です。
[[["わかりやすい","easyToUnderstand","thumb-up"],["問題の解決に役立った","solvedMyProblem","thumb-up"],["その他","otherUp","thumb-up"]],[["わかりにくい","hardToUnderstand","thumb-down"],["情報またはサンプルコードが不正確","incorrectInformationOrSampleCode","thumb-down"],["必要な情報 / サンプルがない","missingTheInformationSamplesINeed","thumb-down"],["翻訳に関する問題","translationIssue","thumb-down"],["その他","otherDown","thumb-down"]],[],[[["This Terraform configuration deploys an event-driven Cloud Function (2nd gen) triggered by Google Cloud Audit Logs, specifically monitoring for `storage.objects.create` events on a designated Google Cloud Storage bucket."],["The configuration utilizes a service account for both the Cloud Function and Eventarc trigger, granting it necessary roles like `run.invoker`, `eventarc.eventReceiver`, and `artifactregistry.reader`."],["A random ID is generated to create a unique prefix for the source and audit log buckets."],["The config specifies a filter for resource names using the `match-path-pattern` operator, enabling the function to be triggered only when `.txt` files are created within the specified bucket and allows path patterns."],["The Cloud Function's build configuration is specified, setting the runtime, entry point, and source code location, while also providing service configurations for instance scaling, memory, timeout, environment variables and network security."]]],[]]