No Products in the Cart
Weekly job that finds IAM users with no activity for > 90 days and notifies a Slack channel.
⚠️ Important: AWS SigV4 for IAM must be scoped tous-east-1. Create the AWS credential in n8n with region us-east-1 (even if your other services run elsewhere).
PasswordLastUsed (console sign-in)AccessKeyLastUsed.LastUsedDate (from GetAccessKeyLastUsed if you add it)CreateDate if no usage data exists (optional)iam
us-east-1 ← required for IAM
iam:ListUsers , iam:GetUser
iam:ListAccessKeys , iam:GetAccessKeyLastUsed
iam.amazonaws.com .minus(N, 'days') .UserName , Arn , LastActivity , CheckedAt .@security or open a ticket.us-east-1 ).GetAccessKeyLastUsed , they may look “inactive”. Add that call for accuracy.PasswordLastUsed is null if console login never happened.toDate / toDateTime before comparisons.