ざっくり手順 Kinesis ストリームの作成と IAM ロールの作成 これは Terraform で一気通貫に。 $ git clone https://github.com/inokappa/oreno-terraform-cloudwatch-logs-subscriptions.git $ cd oreno-terraform-cloudwatch-logs-subscriptions $ terraform apply -var 'access_key=AKxxxxxxxxxxxxxxxxxxxxxxxx' -var 'secret_key=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' ストリーム名が決め打ちとなっているので注意! サブスクリプションフィルタの定義 Kinesis ストリームにログを飛ばす為にログのフィルタを定義する。 aws --
![VPC Flow Logs Tutorial(2) – CloudWatch Logs Subscriptions + KCL for Ruby + Datadog Event で Reject されたトラフィックの可視化 – | iret.media](https://cdn-ak-scissors.b.st-hatena.com/image/square/6141572b7ac139ef29fb0679d08a7e1e3fbcf709/height=288;version=1;width=512/https%3A%2F%2Firet.media%2Fwp-content%2Fuploads%2F2015%2F07%2Feyecatch-aws-2.png)