AWS Lambda Manager with GPT-4.1 & Google Sheets Audit Logging via Chat
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
Cloud engineers and DevOps teams managing AWS Lambda functions.
Developers who want a simple chat interface to perform Lambda operations.
Compliance and operations teams needing automatic audit logs of AWS actions.
How it works / What it does
A chat message triggers the AWS Lambda Manager Agent.
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.
After each action, the agent calls Audit Logs (Google Sheets) to record the operation type, function name, timestamp, and outcome.
The agent confirms destructive actions (like delete) before execution.
How to set up
Add a Chat Trigger node to start the workflow when a user sends a message.
Connect it to the AWS Lambda Manager Agent node.
Configure the agent with the provided system prompt to enforce rules and logging.
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)
Deploy the workflow and test it with sample chat commands like “list functions” or “invoke testFunction”.
Requirements
AWS account with IAM credentials that have lambda:ListFunctions, lambda:InvokeFunction, lambda:GetFunction, and lambda:DeleteFunction permissions.
Google Sheets API connected for storing audit logs.
Proper region and function names configured when invoking or deleting.
n8n instance or automation platform that supports agent + tool integration.
How to customize the workflow
Add new tools**: Extend with more AWS Lambda operations like Update Function Code or Publish Version.
Enhance logging**: Include user ID, request payload, or execution results in Audit Logs.
Access control**: Restrict delete actions to admins by adding role-based logic.
Multi-cloud support**: Extend the agent to handle Azure/AWS/GCP serverless functions in one workflow.
Custom responses**: Modify agent prompt to tailor tone (developer-friendly vs. business-friendly).
Related Templates
Track OpenAI Token Usage and AI Agent Metrics with Google Sheets Dashboard
What it does Captures token usage and cost from your AI Agent/LLM. Logs model, tokens, cost, tool use, and conversation ...
Lookup IP Geolocation Details with IP-API.com via Webhook
This n8n template enables you to instantly retrieve detailed geolocation information for any given IP address by simply ...
Send Hourly Crypto Market Analysis from Binance to Telegram
📈 Daily Crypto Market Summary Bot (Binance to Telegram) This workflow fetches 24h price change data from Binance for s...
🔒 Please log in to import templates to n8n and favorite templates
Workflow Visualization
Loading...
Preparing workflow renderer
Comments (0)
Login to post comments