Skip to main content

Send Slack alerts for AWS IAM access keys older than 365 days

Workflow preview

Workflow preview
100%
Send Slack alerts for AWS IAM access keys older than 365 days preview
Open on n8n.io

Important notice

This workflow is provided as-is. Please review and test before using in production.

1. Workflow Overview

AWS IAM Access Key Rotation Reminder Automation Workflow Watch the demo video below: [![Watch the video](https://s3.ap southeast 1.amazonaws.com/automatewith.me/aws iam access key rotation alert wi...

Best for

  • SecOps automation workflows
  • Multimodal AI automation workflows
  • intermediate n8n builders looking for reusable templates

Tools used

n8n-nodes-base.scheduletrigger, n8n-nodes-base.awsiam, n8n-nodes-base.noop, n8n-nodes-base.slack, n8n-nodes-base.stickynote, n8n-nodes-base.httprequest, n8n-nodes-base.filter, n8n-nodes-base.if

Source and attribution

This workflow is cataloged by N8N Workflows and links back to its original n8n.io source page by Trung Tran.

Original n8n.io source

1.1 Workflow description

Title
Send Slack alerts for AWS IAM access keys older than 365 days
Workflow name
Send Slack alerts for AWS IAM access keys older than 365 days

AWS IAM Access Key Rotation Reminder Automation Workflow

Watch the demo video below:

Who’s it for

  • DevOps/SRE teams responsible for AWS account security.
  • Security/compliance officers ensuring key rotation policies are followed.
  • Any AWS account owner who wants automatic detection of stale access keys.

How it works / What it does

  1. Weekly Scheduler — triggers the workflow on a recurring basis.
  2. Get Many Users — fetches all IAM users in the AWS account.
  3. Get User Access Key(s) — retrieves the access keys associated with each user.
  4. Filter Out Inactive Keys — removes keys that are not active (e.g., status Inactive).
  5. Access Key Older Than 365 Days — checks the key creation date and flags keys older than one year.
  6. Send Slack Message — notifies a Slack channel with details of the outdated key(s) for review and action.
  7. No Operation — safely ends the workflow if no keys match the condition.

How to set up

  • Configure the Weekly Scheduler to run at your desired cadence (e.g., every Monday).
  • Use Get Many Users to list all IAM users.
  • For each user, call ListAccessKeys (Get User Access Key(s)) to fetch their key metadata.
  • Apply a filter to keep only keys with status Active.
  • Add a condition to compare CreateDate against today - 365 days.
  • Send results to Slack using the Slack Post Message node.

Requirements

  • n8n (latest version).
  • AWS credential in n8n configured for us-east-1 (IAM requires signing with this region).
  • IAM permissions:
    • iam:ListUsers
    • iam:ListAccessKeys
  • Slack bot credentials with permission to post messages in the desired channel.

How to customize the workflow

  • Change threshold — adjust the 365 days condition to 90, 180, or any other rotation policy.
  • Escalation — mention @security or create a Jira/Ticket when old keys are found.
  • Logging — push flagged results into a Google Sheet, database, or log management system for audit.
  • Automation — instead of only notifying, add a step to automatically deactivate keys older than the threshold (after approval).
  • Multi-account support — duplicate or loop across multiple AWS credentials if you manage several AWS accounts.

1.2 Logical Blocks

This catalog entry is organized from the workflow JSON. The node-level section below shows the executable blocks available for review before importing the template.

2. Block-by-Block Analysis

Block 1 - Weekly scheduler

Type / Role
n8n-nodes-base.scheduleTrigger - scheduleTrigger
Config choices
Version 1.2

Block 2 - Get many users

Type / Role
n8n-nodes-base.awsIam - awsIam
Config choices
Version 1

Block 3 - No Operation, do nothing

Type / Role
n8n-nodes-base.noOp - noOp
Config choices
Version 1

Block 4 - Send a message

Type / Role
n8n-nodes-base.slack - slack
Config choices
Version 2.3

Block 5 - Sticky Note

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 6 - Sticky Note1

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 7 - Sticky Note2

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 8 - Sticky Note3

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 9 - Sticky Note4

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 10 - Sticky Note7

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 11 - Get User Access Key(s)

Type / Role
n8n-nodes-base.httpRequest - httpRequest
Config choices
Version 4.2

Block 12 - Filter out inactive keys

Type / Role
n8n-nodes-base.filter - filter
Config choices
Version 2.2

Block 13 - Access Key Older Than 365 days

Type / Role
n8n-nodes-base.if - if
Config choices
Version 2.2

Block 14 - Sticky Note5

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

3. Summary Table

Workflow Send Slack alerts for AWS IAM access keys older than 365 days
Complexity intermediate
Nodes 14
Categories SecOps, Multimodal AI
Author Trung Tran
Published 17 Aug 2025

4. Reproducing the Workflow from Scratch

  1. 1. Download the workflow JSON

    Use the JSON export at /data/workflows/7501/7501.json as the source template for this automation.

  2. 2. Import the template into n8n

    Open n8n, import the downloaded JSON, and review each node before activating the workflow.

  3. 3. Configure credentials and variables

    Replace placeholder credentials, API keys, webhook URLs, account IDs, and environment-specific values with your own settings.

  4. 4. Test with sample data

    Run the workflow manually or in a staging workspace, inspect node output, and confirm downstream systems receive the expected data.

  5. 5. Activate and monitor

    Enable the workflow only after testing, then monitor executions, errors, and rate limits during the first production runs.

5. General Notes & Resources

Review imported nodes carefully before activation. This catalog entry is intended to help you inspect the workflow structure, understand required services, and find related templates faster.

Node names, credentials, schedules, webhook paths, and external service limits may need adjustment for your workspace.

Frequently asked questions

What does Send Slack alerts for AWS IAM access keys older than 365 days do?

AWS IAM Access Key Rotation Reminder Automation Workflow Watch the demo video below: [![Watch the video](https://s3.ap southeast 1.amazonaws.com/automatewith.me/aws iam access key rotation alert wi...

What do I need before importing this workflow?

Review the workflow JSON, configure any required credentials in n8n, and test the automation in a safe workspace before using it in production.

Can I customize this workflow?

Yes. Use the block-by-block analysis and the downloadable JSON to inspect each node, then adjust credentials, prompts, schedules, filters, or destinations for your SecOps, Multimodal AI use case.