Hey n8n friends ![]()
I just published a full beginner-friendly walkthrough on how to build a chat-based AI agent in n8n to manage your AWS EC2 instances, no code required!
Watch the full tutorial video here:
Grab the workflow JSON:
Download EC2 Lifecycle Manager Workflow
What this workflow does
This chatbot allows you (or even non-technical users) to manage EC2 instances by simply chatting with the AI agent in natural language. It supports:
-
Describe EC2 instances -
Start / Stop / Reboot / Terminate instances -
Includes confirmation before destructive actions -
Works via AWS HTTP API integration + IAM credentials -
Remembers context using memory module
Main Components
-
Chat Trigger (start the conversation)
-
AI Agent (OpenAI GPT-4 mini + memory)
-
Tool Calls (using HTTP Request to invoke AWS EC2 API)
-
Secure AWS credential auth
-
Dynamic parameter passing (instance ID detection, region control)
Whoβs it for?
-
DevOps engineers
-
Cloud teams
-
Internal support teams
-
Anyone who wants to build a self-service chatbot to manage infrastructure with ease
Pro Tips
-
Limit IAM permissions carefully β donβt give full access to everything
-
Always test with Describe and Stop before trying Terminate
-
This concept can easily be extended to S3, RDS, Lambda, and more
Let me know what you think!
Happy to improve it further or collaborate on more cloud + AI agent use cases.
