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?

More than 1 year has passed since last update.

Athenaを使ってAWSリソースの削除ログをみつける

Last updated at Posted at 2022-08-04

Athenaを使ってAWSリソースの削除ログをみつける

  • KMSが削除されてしまったので、その犯人探し
SELECT * 
FROM "$DBNAME"."$TABLENAME"
CROSS JOIN UNNEST(resources) AS t (resource)
WHERE eventSource = 'kms.amazonaws.com' 
AND resource.arn = 'arn:aws:kms:ap-northeast-1:XXXXXXXXXXXX:key/YYYYYYYYYYYY'
AND NOT eventName = 'Decrypt'
limit 100;
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?