Description
aiac is a command line tool and library that asks a large language model to write infrastructure-as-code. You describe what you need in plain words, such as a Terraform setup for a highly available EKS cluster, and aiac sends a request to the provider you configure. It prints the result, saves it to a file, or both. Supported providers include OpenAI, Amazon Bedrock and Ollama, and you can define several backends in one configuration file to target different providers or environments. The output is not limited to infrastructure templates. The README gives examples for Terraform, Pulumi, CloudFormation, Dockerfiles, Kubernetes manifests, Jenkins and GitHub Actions pipelines, OPA policies, shell and Python scripts, kubectl and awscli commands, and queries for MongoDB, Elasticsearch and SQL. Installation, configuration and usage are covered in the README, along with a Docker option and guidance for using aiac as a library. It is aimed at engineers who want a quick first draft of code, and the generated code should be reviewed before it is applied. With OpenAI you need your own API key, and each request is charged by OpenAI, so check its pricing before heavy use.…
Highlights
- Generates Terraform, Pulumi, CloudFormation and Kubernetes code
- Works with OpenAI, Amazon Bedrock and Ollama
- Several backends in one configuration file
- Also writes CI/CD pipelines, policy as code and CLI commands
- Use as a command line tool, through Docker or as a library
Ratings & Reviews
No ratings yet
Be the first to rate Aiac.
People also visit
Aiac FAQ
What does aiac do?
It turns a plain-language request into infrastructure code, configuration, pipelines or queries by asking an LLM provider such as OpenAI, Amazon Bedrock or Ollama.
How do I install aiac?
The README covers installation, configuration and usage. You can run it from the command line, run it through Docker, or import it as a library.
Is aiac free?
The project is open source on GitHub. You still pay your LLM provider for each request, and with OpenAI you need an API key and are charged per request.
Can I use a local model?
Ollama is one of the supported providers, so you can point aiac at a model you run through Ollama.
What kinds of output can it produce?
Terraform, Pulumi, CloudFormation, Dockerfiles, Kubernetes manifests, Jenkins and GitHub Actions pipelines, OPA policies, scripts, kubectl and awscli commands, and MongoDB, Elasticsearch and SQL queries.
Should I trust the generated code?
Review it before you apply it. The model writes code from your prompt, so the output is a starting point rather than a checked result.
Can I use several accounts or environments?
Yes. You can define multiple backends in the configuration file, each targeting a different provider or environment.
What are the best Aiac alternatives?
Popular alternatives to Aiac include Devopness, Terracotta AI and aider. See all Aiac alternatives











