{
  "name": "Send Slack alerts for AWS IAM access keys older than 365 days",
  "nodes": [
    {
      "id": "77d5914f-44dd-4267-be75-f960f477702d",
      "name": "Weekly scheduler",
      "type": "n8n-nodes-base.scheduleTrigger",
      "position": [
        -448,
        16
      ]
    },
    {
      "id": "e0c92177-d85f-45c1-b0a6-bcb7e9b424e1",
      "name": "Get many users",
      "type": "n8n-nodes-base.awsIam",
      "position": [
        -224,
        16
      ]
    },
    {
      "id": "d019ce1c-ce14-42df-856a-fc9dcaaf533f",
      "name": "No Operation, do nothing",
      "type": "n8n-nodes-base.noOp",
      "position": [
        672,
        112
      ]
    },
    {
      "id": "f0b5101b-e521-45d9-9d93-9bcffa3a1702",
      "name": "Send a message",
      "type": "n8n-nodes-base.slack",
      "position": [
        672,
        -80
      ]
    },
    {
      "id": "7b14679e-4c0d-42bc-904f-41c8f2e3d957",
      "name": "Sticky Note",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -1536,
        -592
      ],
      "parameters": {
        "width": 976,
        "height": 1008,
        "content": "# AWS IAM Access Key Rotation Reminder Automation Workflow\n\n## **Who’s it for**\n- DevOps/SRE teams responsible for AWS account security.  \n- Security/compliance officers ensuring key rotation policies"
      }
    },
    {
      "id": "9234cd35-9728-47de-96c8-1eb5c4ffb354",
      "name": "Sticky Note1",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -512,
        -144
      ],
      "parameters": {
        "width": null,
        "height": 112,
        "content": "### 1. Schedule Workflow\nRun the workflow on a weekly schedule to automatically check all IAM users."
      }
    },
    {
      "id": "9d2fff11-c252-45f8-af8b-e18761fed2a6",
      "name": "Sticky Note2",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -208,
        192
      ],
      "parameters": {
        "width": 304,
        "height": 112,
        "content": "\n### 2. Retrieve IAM Users and Access Keys\nFetch all IAM users and list their associated access keys."
      }
    },
    {
      "id": "e5535511-2750-45dd-bd7b-1daf18d41842",
      "name": "Sticky Note3",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        112,
        -144
      ],
      "parameters": {
        "width": 256,
        "height": 96,
        "content": "### 3. Filter Keys\nRemove inactive keys and keep only those that are active."
      }
    },
    {
      "id": "9714750e-365f-40fb-a917-7dfbce8d1803",
      "name": "Sticky Note4",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        336,
        208
      ],
      "parameters": {
        "width": null,
        "height": 112,
        "content": "### 4. Check Key Age\nIdentify keys that are older than 365 days based on their creation date."
      }
    },
    {
      "id": "bee26e8e-3f62-44e0-abf1-2a42b293ae75",
      "name": "Sticky Note7",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        896,
        -64
      ],
      "parameters": {
        "width": 528,
        "height": 112,
        "content": "![](https://wisestackai.s3.ap-southeast-1.amazonaws.com/Screenshot+2025-08-17+at+1.56.54%E2%80%AFPM.png)"
      }
    },
    {
      "id": "ccbe9813-0aa1-410c-b389-abe678fa1d25",
      "name": "Get User Access Key(s)",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        0,
        16
      ]
    },
    {
      "id": "60809479-ea5c-4446-aa70-5c6d841d09ea",
      "name": "Filter out inactive keys",
      "type": "n8n-nodes-base.filter",
      "position": [
        224,
        16
      ]
    },
    {
      "id": "b58b0157-cd92-4e49-b6e9-739269329775",
      "name": "Access Key Older Than 365 days ",
      "type": "n8n-nodes-base.if",
      "position": [
        448,
        16
      ]
    },
    {
      "id": "f98f864f-2efa-4246-93ab-a45667751d7a",
      "name": "Sticky Note5",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        640,
        -224
      ],
      "parameters": {
        "width": null,
        "height": 112,
        "content": "### 5. Notify via Slack\nSend a Slack message with details of any outdated keys for review and action."
      }
    }
  ],
  "connections": {
    "Get many users": {
      "main": [
        [
          {
            "node": "Get User Access Key(s)",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Weekly scheduler": {
      "main": [
        [
          {
            "node": "Get many users",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Get User Access Key(s)": {
      "main": [
        [
          {
            "node": "Filter out inactive keys",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Filter out inactive keys": {
      "main": [
        [
          {
            "node": "Access Key Older Than 365 days ",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Access Key Older Than 365 days ": {
      "main": [
        [
          {
            "node": "Send a message",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "No Operation, do nothing",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}