Back to library
Defensive Intermediate Free

Find console login events.

Find console login events.

AWS CLI / Cloud Security

Log in to save

Command

aws cloudtrail lookup-events --lookup-attributes AttributeKey=EventName,AttributeValue=ConsoleLogin

Syntax

aws cloudtrail lookup-events --lookup-attributes AttributeKey=EventName,AttributeValue=ConsoleLogin

Use case

Use during authorized defensive operations, lab simulations, or audit preparation to understand expected telemetry and command structure.

Explanation

Find console login events. This reference is stored in the database and rendered dynamically for safe education, audit, and simulation workflows.

Example output

SIMULATED OUTPUT
status=ok
records=12
note="Database seeded command reference."

More examples

Expanded library example

aws cloudtrail lookup-events --lookup-attributes AttributeKey=EventName,AttributeValue=ConsoleLogin

Find console login events.

linux macos windows aws-cli cloud-security expanded-library

Related

Defensive Intermediate Free

Review IAM account summary.

Review IAM account summary.

aws iam get-account-summary
aws-cli cloud-security expanded-library
AWS CLI / Cloud Security Open
Defensive Intermediate Free

List IAM users.

List IAM users.

aws iam list-users --query "Users[].UserName"
aws-cli cloud-security expanded-library
AWS CLI / Cloud Security Open
Defensive Intermediate Free

Review access keys for a user.

Review access keys for a user.

aws iam list-access-keys --user-name analyst
aws-cli cloud-security expanded-library
AWS CLI / Cloud Security Open