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?

【備忘録】SESのメール送信リクエストはCloudtrailに残らない ~AWS100本ノック~ 16/100

Posted at

備忘録メモ

  • AWSでAPIリクエストをすると、誰がどんな操作をしたかはCloudtrailの証跡に記録される
  • しかし、一部のAPIリクエストはログに残らない仕様である
  • SESでメールテンプレートを使って一斉送信を行った際に一部のリクエストが成功しなかったため、リクエストの記録を見ようと思ったが確認できなかった。以下AWS公式の説明
Note
Amazon SES delivers management events to CloudTrail. Management events include actions that are related to creating and managing resources within your AWS account. In Amazon SES, management events include actions such as creating and deleting identities or receipt rules.

Management events are different from data events. Data events are events that are related to accessing and interacting with data within your AWS account. In Amazon SES, data events include actions such as sending emails.

Because Amazon SES only delivers management events to CloudTrail, the following events aren't recorded in CloudTrail:

SendEmail
SendRawEmail
SendTemplatedEmail
SendBulkTemplatedEmail

You can use event publishing to record events related to email sending. For more information, see Monitor email sending using Amazon SES event publishing.

メモ
Amazon SESはCloudTrailに管理イベントを配信します。管理イベントには、AWSアカウント内のリソースの作成と管理に関連するアクションが含まれます。Amazon SESでは、管理イベントにはIDや受信ルールの作成・削除などのアクションが含まれます。

管理イベントはデータイベントとは異なります。データイベントは、AWSアカウント内のデータへのアクセスと相互作用に関連するイベントです。Amazon SESでは、データイベントにはメールの送信などのアクションが含まれます。

Amazon SESは管理イベントのみをCloudTrailに配信するため、以下のイベントはCloudTrailに記録されません:

SendEmail
SendRawEmail
SendTemplatedEmail
SendBulkTemplatedEmail

イベントパブリッシングを使用すると、メール送信に関連するイベントを記録できます。詳細については、Amazon SESイベントパブリッシングを使用したメール送信の監視を参照してください。
  • つまり、メール送信リクエストを行うアプリケーションでレスポンスなどからハンドリングし、必要に応じてログに出力する
  • でないと、送信できなかった場合にエラー原因(スロットリングエラーなど)を確認できない
    ※CloudWatchメトリクスでも見れない
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?