Enhance your Terraform and OpenTofu configurations with intelligent analysis powered by local LLMs
Here's the problem: You spin up a Terraform or OpenTofu resource, pull a basic configuration from the registry, and start wondering what other parameters should be enabled to make it more secure and efficient. Sure, you could use tools like TLint or TFSec, but kuzco
saves you time by avoiding the need to dig through the Terraform registry and decipher unclear options. It leverages local LLMs to recommend what should be enabled and configured. Simply put, kuzco
reviews your Terraform and OpenTofu resources, compares them to the provider schema to detect unused parameters, and uses AI to suggest improvements for a more secure, reliable, and optimized setup.
Note
To use kuzco
, Ollama must be installed. You can do this by running brew bundle install
or brew install ollama
. For more information on customizing Ollama models for tailored Kuzco responses, check out Customizing Ollama
brew install kuzco
If you have a functional Go environment, you can install with:
go install github.com/RoseSecurity/kuzco@latest
To install packages, you can quickly setup the repository automatically:
curl -1sLf \
'https://dl.cloudsmith.io/public/rosesecurity/kuzco/setup.deb.sh' \
| sudo -E bash
Once the repository is configured, you can install with:
apt install kuzco=<VERSION>
git clone git@github.com:RoseSecurity/Kuzco.git
cd Kuzco
make build
The following configuration options are available:
❯ kuzco
██ ██ ██ ██ ███████ ██████ ██████
██ ██ ██ ██ ███ ██ ██ ██
█████ ██ ██ ███ ██ ██ ██
██ ██ ██ ██ ███ ██ ██ ██
██ ██ ██████ ███████ ██████ ██████
Intelligently analyze your Terraform and OpenTofu configurations to receive personalized recommendations and fixes for boosting efficiency, security, and performance.
Usage:
kuzco [flags]
kuzco [command]
Available Commands:
completion Generate the autocompletion script for the specified shell
fix Diagnose configuration errors
help Help about any command
list Lists available Ollama models
recommend Intelligently analyze your Terraform and OpenTofu configurations
version Print the CLI version
Flags:
-h, --help help for kuzco
Use "kuzco [command] --help" for more information about a command.
For bug reports & feature requests, please use the issue tracker.
PRs are welcome! We follow the typical "fork-and-pull" Git workflow.
- Fork the repo on GitHub
- Clone the project to your own machine
- Commit changes to your own branch
- Push your work back up to your fork
- Submit a Pull Request so that we can review your changes
Tip
Be sure to merge the latest changes from "upstream" before making a pull request!