Amazon Timestream for InfluxDB の新機能「EventBridge 状態変更イベント」を試して CloudTrail と比較してみた

Amazon Timestream for InfluxDB の新機能「EventBridge 状態変更イベント」を試して CloudTrail と比較してみた

Amazon Timestream for InfluxDB が DB インスタンスの状態変更イベントを EventBridge へ発行するようになりました。作成・リブート・スケーリング・削除の各操作で成功時に発行されるイベントを確認し、CloudTrail 経由イベントとの構造やタイミングの違いを比較します
2026.07.11

はじめに

Amazon Timestream for InfluxDB が、DB インスタンスのライフサイクルイベントを Amazon EventBridge へ発行するようになりました(2026/07/09 発表)。

https://aws.amazon.com/about-aws/whats-new/2026/07/timestream-influxdb-eventbridge/

これまで DB インスタンス操作の完了をイベント駆動で検知する仕組みはなく、完了確認には DescribeDbInstances API のポーリングが必要でした。今回のアップデートで、ポーリングに頼らず EventBridge ルールで操作完了を検知できるようになります。

項目 以前 今回
状態変更の検知方法 DescribeDbInstances API ポーリング EventBridge イベントで自動通知
対応イベント CloudTrail 経由の API イベントのみ(操作完了を示す状態変更イベントなし) 作成/削除/スケーリング/パラメータ更新/メンテナンス/リブート
自動化の容易さ ポーリング + 条件分岐が必要 EventBridge ルールで宣言的にルーティング

本機能は成功完了だけでなく失敗時のイベントも発行対象です。本記事では、DB インスタンスに対する4つの操作(作成・リブート・ストレージスケーリング・削除)を実行し、成功時に発行される新しい状態変更イベントの構造を確認します。あわせて、同じ操作で発行される CloudTrail 経由イベントとの違いを比較します。

検証内容

事前準備: EventBridge ルールの作成

ソース aws.timestream-influxdb にマッチするイベントを CloudWatch Logs に転送するルールを作成しました。

# ルール作成
aws events put-rule \
  --name "timestream-influxdb-state-change" \
  --event-pattern '{"source": ["aws.timestream-influxdb"]}' \
  --region us-west-2

# CloudWatch Logs ターゲット設定
aws events put-targets \
  --rule "timestream-influxdb-state-change" \
  --targets 'Id=cloudwatch-logs-target,Arn=arn:aws:logs:us-west-2:123456789012:log-group:/aws/events/timestream-influxdb' \
  --region us-west-2

このルールはソースのみでフィルタリングしているため、CloudTrail の管理イベント記録が有効な環境では、CloudTrail 経由イベントと新しい状態変更イベントの両方がキャプチャされます。

検証環境は以下のとおりです。

  • リージョン: us-west-2(オレゴン)
  • DB インスタンス: db.influx.medium / 20 GiB / Single-AZ
  • インスタンス名: test-eventbridge-verify

作成イベント: CloudTrail と新イベントのフル比較

CloudTrail 経由イベント(API 呼び出し記録)

CreateDbInstance API の呼び出し記録として、以下の CloudTrail 経由イベントが届きました。

{
  "version": "0",
  "detail-type": "AWS API Call via CloudTrail",
  "source": "aws.timestream-influxdb",
  "time": "2026-07-11T04:51:27Z",
  "region": "us-west-2",
  "resources": [],
  "detail": {
    "eventName": "CreateDbInstance",
    "requestParameters": {
      "allocatedStorage": 20,
      "dbInstanceType": "db.influx.medium",
      "deploymentType": "SINGLE_AZ",
      "name": "test-eventbridge-verify",
      "password": "HIDDEN_DUE_TO_SECURITY_REASONS"
    },
    "responseElements": {
      "arn": "arn:aws:timestream-influxdb:us-west-2:123456789012:db-instance/4q8g1gli53",
      "id": "4q8g1gli53",
      "name": "test-eventbridge-verify",
      "status": "CREATING"
    },
    "eventType": "AwsApiCall",
    "managementEvent": true
  }
}

(主要フィールドのみ抜粋。全文は下の折りたたみを参照)

ポイントとして、responseElements.statusCREATING(進行形)であることに注目してください。この時点ではインスタンスはまだ利用可能な状態ではありません。また、requestParameters には API 呼び出し時の主なリクエストパラメータが記録されています(パスワードやユーザー名などの機密値は HIDDEN_DUE_TO_SECURITY_REASONS でマスクされます)。

CloudTrail 経由イベント全文(一部マスク、クリックで展開)
{
  "version": "0",
  "id": "4c0f036d-a6cc-dd99-56e4-92a699c2cc4f",
  "detail-type": "AWS API Call via CloudTrail",
  "source": "aws.timestream-influxdb",
  "account": "123456789012",
  "time": "2026-07-11T04:51:27Z",
  "region": "us-west-2",
  "resources": [],
  "detail": {
    "eventVersion": "1.11",
    "userIdentity": {
      "type": "AssumedRole",
      "principalId": "AROAXXXXXXXXXXXXXXXXX:session-name",
      "arn": "arn:aws:sts::123456789012:assumed-role/role-name/session-name",
      "accountId": "123456789012"
    },
    "eventTime": "2026-07-11T04:51:27Z",
    "eventSource": "timestream-influxdb.amazonaws.com",
    "eventName": "CreateDbInstance",
    "awsRegion": "us-west-2",
    "sourceIPAddress": "xxx.xxx.xxx.xxx",
    "userAgent": "aws-cli/2.35.19 ...",
    "requestParameters": {
      "allocatedStorage": 20,
      "bucket": "testbucket",
      "dbInstanceType": "db.influx.medium",
      "deploymentType": "SINGLE_AZ",
      "name": "test-eventbridge-verify",
      "organization": "testorg",
      "password": "HIDDEN_DUE_TO_SECURITY_REASONS",
      "publiclyAccessible": false,
      "username": "HIDDEN_DUE_TO_SECURITY_REASONS",
      "vpcSecurityGroupIds": ["sg-xxxxxxxx"],
      "vpcSubnetIds": ["subnet-xxxxxxxx", "subnet-yyyyyyyy"]
    },
    "responseElements": {
      "allocatedStorage": 20,
      "arn": "arn:aws:timestream-influxdb:us-west-2:123456789012:db-instance/4q8g1gli53",
      "availabilityZone": "us-west-2b",
      "dbInstanceType": "db.influx.medium",
      "dbStorageType": "InfluxIOIncludedT1",
      "deploymentType": "SINGLE_AZ",
      "id": "4q8g1gli53",
      "name": "test-eventbridge-verify",
      "networkType": "IPV4",
      "port": 8086,
      "publiclyAccessible": false,
      "status": "CREATING",
      "vpcSecurityGroupIds": ["sg-xxxxxxxx"],
      "vpcSubnetIds": ["subnet-xxxxxxxx", "subnet-yyyyyyyy"]
    },
    "requestID": "b443fc85-5c1a-420a-8b7a-6b676c0fa3b9",
    "eventID": "6d992928-cdbd-4bd7-8282-949b87f1b9ff",
    "readOnly": false,
    "eventType": "AwsApiCall",
    "managementEvent": true,
    "recipientAccountId": "123456789012",
    "eventCategory": "Management",
    "tlsDetails": {
      "tlsVersion": "TLSv1.3",
      "cipherSuite": "TLS_AES_128_GCM_SHA256",
      "clientProvidedHostHeader": "timestream-influxdb.us-west-2.amazonaws.com"
    }
  }
}

新しい状態変更イベント(操作完了後)

作成完了を示すイベントとして、CloudTrail 経由イベントから約8分後に以下が届きました。

{
  "version": "0",
  "id": "2c06834f-2e2c-06c2-caf0-eb13c9bc9d39",
  "detail-type": "Timestream InfluxDB DB Instance Event",
  "source": "aws.timestream-influxdb",
  "account": "123456789012",
  "time": "2026-07-11T04:59:20Z",
  "region": "us-west-2",
  "resources": [
    "arn:aws:timestream-influxdb:us-west-2:123456789012:db-instance/4q8g1gli53"
  ],
  "detail": {
    "EventCategories": ["creation"],
    "SourceType": "DB_INSTANCE",
    "SourceArn": "arn:aws:timestream-influxdb:us-west-2:123456789012:db-instance/4q8g1gli53",
    "Date": "2026-07-11T04:59:20.224Z",
    "Message": "InfluxDB v2 instance 'test-eventbridge-verify' created",
    "SourceIdentifier": "test-eventbridge-verify",
    "EventID": "TIDB-EVENT-11001"
  }
}

CloudTrail 経由イベントとの主な違いです。

  • detail-typeTimestream InfluxDB DB Instance Event — Timestream for InfluxDB 固有の新しいイベントタイプです
  • resources に DB インスタンスの ARN が含まれます
  • detail の構造がシンプル — EventIDMessageEventCategoriesSourceArn 等に絞られています
  • API のリクエスト/レスポンス情報は含まれません — 「何が起きたか」の結果のみを通知します
  • time は操作完了後のイベント発行時刻 — CloudTrail が API 呼び出し記録時の時刻であるのに対し、こちらは操作完了後に発行されたイベントの時刻です

リブート / ストレージスケーリング / 削除イベント

残り3操作でも CloudTrail + 新イベントのペアが発火しました。差分は以下のとおりです。

操作 EventID EventCategories Message
作成完了 TIDB-EVENT-11001 creation InfluxDB v2 instance '...' created
リブート完了 TIDB-EVENT-16001 notification InfluxDB v2 instance '...' rebooted
ストレージ更新完了 TIDB-EVENT-12002 notification InfluxDB v2 instance '...' storage updated
削除完了 TIDB-EVENT-13001 notification InfluxDB v2 instance '...' deleted

今回試した4操作では、作成のみ EventCategoriescreation で、それ以外は notification でした。

CloudTrail 側の eventName と新イベント側の EventID の対応は以下のとおりです。

CloudTrail eventName 新イベント EventID CloudTrail status タイミング差
CreateDbInstance TIDB-EVENT-11001 CREATING +約8分
RebootDbInstance TIDB-EVENT-16001 REBOOTING +約3.5分
UpdateDbInstance TIDB-EVENT-12002 UPDATING +約6.5分
DeleteDbInstance TIDB-EVENT-13001 DELETING +約5.5分

今回確認した4操作の成功ケースでは、CloudTrail は API 呼び出し記録時(status が進行形)、新イベントは成功完了後に届いています。

リブート — CloudTrail 経由イベント
{
  "version": "0",
  "id": "c1f41506-055a-8c81-b3fa-e4a655a33b53",
  "detail-type": "AWS API Call via CloudTrail",
  "source": "aws.timestream-influxdb",
  "account": "123456789012",
  "time": "2026-07-11T05:03:47Z",
  "region": "us-west-2",
  "resources": [],
  "detail": {
    "eventName": "RebootDbInstance",
    "requestParameters": {
      "identifier": "4q8g1gli53"
    },
    "responseElements": {
      "arn": "arn:aws:timestream-influxdb:us-west-2:123456789012:db-instance/4q8g1gli53",
      "name": "test-eventbridge-verify",
      "status": "REBOOTING"
    }
  }
}

(主要フィールドのみ抜粋)

リブート — 新イベント
{
  "version": "0",
  "id": "b8104ebe-f614-b44e-747c-6fd06194edc2",
  "detail-type": "Timestream InfluxDB DB Instance Event",
  "source": "aws.timestream-influxdb",
  "account": "123456789012",
  "time": "2026-07-11T05:07:13Z",
  "region": "us-west-2",
  "resources": [
    "arn:aws:timestream-influxdb:us-west-2:123456789012:db-instance/4q8g1gli53"
  ],
  "detail": {
    "EventCategories": ["notification"],
    "SourceType": "DB_INSTANCE",
    "SourceArn": "arn:aws:timestream-influxdb:us-west-2:123456789012:db-instance/4q8g1gli53",
    "Date": "2026-07-11T05:07:13.193Z",
    "Message": "InfluxDB v2 instance 'test-eventbridge-verify' rebooted",
    "SourceIdentifier": "test-eventbridge-verify",
    "EventID": "TIDB-EVENT-16001"
  }
}
ストレージスケーリング — CloudTrail 経由イベント
{
  "version": "0",
  "id": "f6a213a5-ebaf-dfa8-b71c-ad11b246956a",
  "detail-type": "AWS API Call via CloudTrail",
  "source": "aws.timestream-influxdb",
  "account": "123456789012",
  "time": "2026-07-11T05:08:24Z",
  "region": "us-west-2",
  "resources": [],
  "detail": {
    "eventName": "UpdateDbInstance",
    "requestParameters": {
      "allocatedStorage": 25,
      "identifier": "4q8g1gli53"
    },
    "responseElements": {
      "allocatedStorage": 20,
      "arn": "arn:aws:timestream-influxdb:us-west-2:123456789012:db-instance/4q8g1gli53",
      "name": "test-eventbridge-verify",
      "status": "UPDATING"
    }
  }
}

(主要フィールドのみ抜粋。responseElements.allocatedStorage には更新前の値 20 が返されています。リクエストで指定した 25 ではない点に注意してください)

ストレージスケーリング — 新イベント
{
  "version": "0",
  "id": "f4826fbd-cd30-3cd0-412c-26ae4a3d21d6",
  "detail-type": "Timestream InfluxDB DB Instance Event",
  "source": "aws.timestream-influxdb",
  "account": "123456789012",
  "time": "2026-07-11T05:15:01Z",
  "region": "us-west-2",
  "resources": [
    "arn:aws:timestream-influxdb:us-west-2:123456789012:db-instance/4q8g1gli53"
  ],
  "detail": {
    "EventCategories": ["notification"],
    "SourceType": "DB_INSTANCE",
    "SourceArn": "arn:aws:timestream-influxdb:us-west-2:123456789012:db-instance/4q8g1gli53",
    "Date": "2026-07-11T05:15:01.680Z",
    "Message": "InfluxDB v2 instance 'test-eventbridge-verify' storage updated",
    "SourceIdentifier": "test-eventbridge-verify",
    "EventID": "TIDB-EVENT-12002"
  }
}
削除 — CloudTrail 経由イベント
{
  "version": "0",
  "id": "2e3121b9-11c4-3a4e-8c36-204768460501",
  "detail-type": "AWS API Call via CloudTrail",
  "source": "aws.timestream-influxdb",
  "account": "123456789012",
  "time": "2026-07-11T05:17:07Z",
  "region": "us-west-2",
  "resources": [],
  "detail": {
    "eventName": "DeleteDbInstance",
    "requestParameters": {
      "identifier": "4q8g1gli53"
    },
    "responseElements": {
      "allocatedStorage": 25,
      "arn": "arn:aws:timestream-influxdb:us-west-2:123456789012:db-instance/4q8g1gli53",
      "name": "test-eventbridge-verify",
      "status": "DELETING"
    }
  }
}

(主要フィールドのみ抜粋)

削除 — 新イベント
{
  "version": "0",
  "id": "9749cf8c-8eba-7e52-e42a-d71821e7fe12",
  "detail-type": "Timestream InfluxDB DB Instance Event",
  "source": "aws.timestream-influxdb",
  "account": "123456789012",
  "time": "2026-07-11T05:22:34Z",
  "region": "us-west-2",
  "resources": [
    "arn:aws:timestream-influxdb:us-west-2:123456789012:db-instance/4q8g1gli53"
  ],
  "detail": {
    "EventCategories": ["notification"],
    "SourceType": "DB_INSTANCE",
    "SourceArn": "arn:aws:timestream-influxdb:us-west-2:123456789012:db-instance/4q8g1gli53",
    "Date": "2026-07-11T05:22:34.839Z",
    "Message": "InfluxDB v2 instance 'test-eventbridge-verify' deleted",
    "SourceIdentifier": "test-eventbridge-verify",
    "EventID": "TIDB-EVENT-13001"
  }
}

比較まとめ

観点 CloudTrail 経由イベント 新・状態変更イベント
detail-type AWS API Call via CloudTrail Timestream InfluxDB DB Instance Event
発火タイミング API 呼び出しの記録時 今回の成功ケースでは操作完了後
resources フィールド 空配列 DB インスタンスの ARN
detail の内容 リクエスト/レスポンスの主要パラメータ EventID、Message、EventCategories、SourceArn など
誰が操作したか userIdentity で確認可能 含まれない
操作が完了したか 単一イベントでは最終的な完了を判断できない(status は進行形) 今回確認した成功イベントでは、操作の成功完了を示すシグナル

ユースケースの使い分け

  • CloudTrail 経由イベント: 「誰が」「いつ」「どのパラメータで」API を呼び出したかを記録する。監査ログ、セキュリティアラート、不正操作検知に向いています
  • 新・状態変更イベント: 操作の成功完了や失敗といった状態変更結果を通知する。今回確認した成功イベントは、後続処理のトリガー(Slack 通知、Step Functions 起動、ダッシュボード更新)に向いています

両者は補完関係にあり、EventBridge ルールで detail-type を分けてフィルタリングすることで併用できます。

まとめ

Timestream for InfluxDB の新しい EventBridge イベントは、DB インスタンスの状態変更結果を通知するシンプルな構造でした。

今回確認した成功ケースでは、作成・リブート・ストレージ更新・削除の各操作について、CloudTrail 経由イベントの後に、操作完了を示す状態変更イベントが届きました。CloudTrail 経由イベントが API 呼び出しの事実やリクエスト/レスポンスの主要パラメータを記録するのに対し、新イベントは EventIDMessage などで操作結果を簡潔に伝えます。

本検証では成功時のイベントを確認しましたが、失敗時も発行対象です。API 呼び出しの監査は CloudTrail、操作結果を起点にした後続処理は新しい状態変更イベント、という形で使い分けやすいアップデートだと感じました。

参考リンク

この記事をシェアする

AWSのお困り事はクラスメソッドへ

関連記事