This tutorial demonstrates building an AI agent that automates Infrastructure as Code workflows using Kagent, an agentic AI framework. The system combines GitHub and AWS Terraform MCP servers to enable natural language infrastructure requests that automatically generate Terraform configurations and create pull requests. The
Table of contents
This tutorial covers:PrerequisitesSetting up a Kubernetes clusterSetting up KagentSetting up tool serversCreating a Github repositoryCreating the AI agentIntegrating CircleCIConnecting the application to CircleCIConclusionSort: