{
  "name": "Auto-renew AWS certificates with Slack approval workflow",
  "nodes": [
    {
      "id": "19f3e8a0-5957-4c10-8d09-75d88a55402e",
      "name": "Schedule Trigger",
      "type": "n8n-nodes-base.scheduleTrigger",
      "position": [
        0,
        0
      ]
    },
    {
      "id": "76302994-4f45-4353-8b5e-f253fbf28b5a",
      "name": "Renew a certificate",
      "type": "n8n-nodes-base.awsCertificateManager",
      "position": [
        1184,
        0
      ]
    },
    {
      "id": "0620ba39-d94d-4876-a802-b6cc1100e9a9",
      "name": "Get many certificates",
      "type": "n8n-nodes-base.awsCertificateManager",
      "position": [
        240,
        0
      ]
    },
    {
      "id": "6d3e2484-43da-4a0e-8e92-175b4d1ec3fe",
      "name": "Send message and wait for response",
      "type": "n8n-nodes-base.slack",
      "position": [
        880,
        0
      ]
    },
    {
      "id": "6e47976b-6eb8-4a42-a777-b23e857f9651",
      "name": "Cert expire in next 7 days?",
      "type": "n8n-nodes-base.filter",
      "position": [
        528,
        0
      ]
    },
    {
      "id": "5a336509-7d02-4c62-8198-04ad2750682f",
      "name": "Sticky Note",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -1136,
        -576
      ],
      "parameters": {
        "width": 928,
        "height": 1616,
        "content": "# AWS ACM Certificate Auto-Renew with Slack approval\n\n## **Who’s it for**\n- SRE/DevOps teams managing many ACM certs.\n- Cloud ops who want **hands-off renewals** with an **approval step in Slack**.\n- "
      }
    },
    {
      "id": "158aa163-42cb-42d6-b915-c1525983e069",
      "name": "Sticky Note1",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -80,
        192
      ],
      "parameters": {
        "width": 272,
        "height": null,
        "content": "### 1. Schedule Trigger\nThe workflow starts on a scheduled basis (e.g., daily at 09:00) to automatically check ACM certificates without manual intervention."
      }
    },
    {
      "id": "38d53502-a32b-4734-a63b-d362f0c16f7d",
      "name": "Sticky Note2",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        240,
        192
      ],
      "parameters": {
        "width": 256,
        "height": null,
        "content": "### 2. Get Certificates\nFetches all ACM certificates in the configured AWS region(s), including details such as domain names, status, and expiration dates."
      }
    },
    {
      "id": "c41f8bcd-9473-45a5-b8da-08090d024955",
      "name": "Sticky Note3",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        528,
        192
      ],
      "parameters": {
        "width": null,
        "height": null,
        "content": "### 3. Filter Certificates Expiring Soon\nChecks each certificate and keeps only those that are already valid and will expire within the next 7 days.\n\n"
      }
    },
    {
      "id": "8b46936f-4dfd-44ea-bdda-cd35209d7c61",
      "name": "Sticky Note4",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        832,
        192
      ],
      "parameters": {
        "width": null,
        "height": null,
        "content": "### 4. Notify via Slack and Wait for Approval\nSends a Slack message with certificate details (domain, ARN, expiration date, status).  \nThe workflow pauses here until a user clicks **Approve** or **Rej"
      }
    },
    {
      "id": "4de9462c-89e2-4a78-87c1-eaeaf0b418a5",
      "name": "Sticky Note5",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1120,
        192
      ],
      "parameters": {
        "width": null,
        "height": null,
        "content": "### 5. Renew Certificate\nIf **Approve** is selected in Slack, the workflow triggers AWS ACM to renew the certificate automatically.  \nIf **Reject** is clicked, no action is taken, and the workflow end"
      }
    },
    {
      "id": "d72ec217-74be-481b-bb17-d640a80dfede",
      "name": "Inform IT Admin",
      "type": "n8n-nodes-base.slack",
      "position": [
        1456,
        0
      ]
    },
    {
      "id": "5b0e2374-fc3a-49e5-8538-65551f9d5422",
      "name": "Sticky Note6",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1680,
        -32
      ],
      "parameters": {
        "width": 624,
        "height": 192,
        "content": "![](https://wisestackai.s3.ap-southeast-1.amazonaws.com/Screenshot+2025-08-17+at+12.00.30%E2%80%AFPM.png)"
      }
    },
    {
      "id": "8fd13176-f90c-4fea-bb42-c13d98488d33",
      "name": "Sticky Note7",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1424,
        192
      ],
      "parameters": {
        "width": null,
        "height": null,
        "content": "### 6. Notify admin via Slack"
      }
    }
  ],
  "connections": {
    "Schedule Trigger": {
      "main": [
        [
          {
            "node": "Get many certificates",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Renew a certificate": {
      "main": [
        [
          {
            "node": "Inform IT Admin",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Get many certificates": {
      "main": [
        [
          {
            "node": "Cert expire in next 7 days?",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Cert expire in next 7 days?": {
      "main": [
        [
          {
            "node": "Send message and wait for response",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Send message and wait for response": {
      "main": [
        [
          {
            "node": "Renew a certificate",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}