⚙️ Aws Lambda manager with GPT-4.1 & Google Sheets audit logging via chat

152 views · ⚙️ DevOps & CI/CD

Description

Chat-Based AWS Lambda Manager with Automated Audit Logging (GPT-4.1 mini + Google Sheet)

> This workflow provides a chat-based AI agent to manage AWS Lambda functions. It allows users to list, invoke, get details, and delete Lambda functions, while automatically recording every action into Google Sheets for audit and compliance tracking.

Who’s it for

How it works / What it does

  1. A chat message triggers the AWS Lambda Manager Agent.
  2. The agent interprets user intent and calls one of the available tools:
    • Invoke Lambda Function: Runs a Lambda function with given payload.
    • List Lambda Functions: Shows all functions in the account.
    • Get Lambda Function: Retrieves details/configuration of a function.
    • Delete a Function: Removes a Lambda function permanently.
  3. After each action, the agent calls Audit Logs (Google Sheets) to record the operation type, function name, timestamp, and outcome.
  4. The agent confirms destructive actions (like delete) before execution.

How to set up

  1. Add a Chat Trigger node to start the workflow when a user sends a message.
  2. Connect it to the AWS Lambda Manager Agent node.
  3. Configure the agent with the provided system prompt to enforce rules and logging.
  4. Link the agent to the following tool nodes:
    • Invoke Lambda Function
    • List Lambda Functions
    • Get Lambda Function
    • Delete a Function
    • Audit Logs (Google Sheets with appendOrUpdate enabled)
  5. Deploy the workflow and test it with sample chat commands like “list functions” or “invoke testFunction”.

Requirements

How to customize the workflow

🔗 Nodes Used

AI Agent, OpenAI Chat Model, Simple Memory, Chat Trigger

📥 Import

Download workflow.json and import into n8n: Workflow menu → Import from File

📖 Importing guide · 🔑 Credential setup