AWS CloudTrail CLI example(delete ECS service event)
2023. 1. 30. 16:23ㆍAWS/AWS CloudTrail
728x90
SMALL
- CLI
aws cloudtrail lookup-events --lookup-attributes AttributeKey=<attribute>,AttributeValue=<string>
- attribute
AccessKeyId
EventId
EventName
EventSource
ReadOnly
ResourceName
ResourceType
Username
- delete ECS service event (example)
aws cloudtrail lookup-events --lookup-attributes AttributeKey=EventName,AttributeValue=DeleteService --query Events[].Resources[].ResourceName
- reference
https://docs.aws.amazon.com/ko_kr/awscloudtrail/latest/userguide/view-cloudtrail-events-cli.html
728x90
LIST
'AWS > AWS CloudTrail' 카테고리의 다른 글
AWS Cloudtrail IAM 관련 변경 이벤트 알림 slack (0) | 2024.04.03 |
---|---|
AWS Cloudtrail EC2 보안 그룹 변경 알림(Security Group Event) (1) | 2024.04.03 |
cloudtrail console login event (0) | 2022.11.11 |