← 全部工具

aiac

热度 85 更新于 开发与构建

Artificial Intelligence Infrastructure-as-Code Generator

homebrewauto-collected

安装

Homebrew
brew install aiac

通过 Homebrew 安装。

Artificial Intelligence Infrastructure-as-Code Generator.

<kbd<img src="demo.gif" style="width: 100%; border: 1px solid silver;" border="1" alt="demo"</kbd

  • Description
  • Use Cases and Example Prompts
  • Generate IaC
  • Generate Configuration Files
  • Generate CI/CD Pipelines
  • Generate Policy as Code
  • Generate Utilities
  • Command Line Builder
  • Query Builder
  • Instructions
  • Installation
  • Configuration
  • Usage
  • Command Line
  • Listing Models
  • Generating Code
  • Via Docker
  • As a Library
  • Upgrading from v4 to v5
  • Changes in Configuration
  • Changes in CLI Invokation
  • Changes in Model Usage and Support
  • Other Changes
  • Example Output
  • Troubleshooting
  • License

Description

aiac is a library and command line tool to generate IaC (Infrastructure as Code) templates, configurations, utilities, queries and more via LLM providers such as OpenAI, Amazon Bedrock and Ollama.

The CLI allows you to ask a model to generate templates for different scenarios (e.g. "get terraform for AWS EC2"). It composes an appropriate request to the selected provider, and stores the resulting code to a file, and/or prints it to standard output.

Users can define multiple "backends" targeting different LLM providers and environments using a simple configuration file.

Use Cases and Example Prompts

Generate IaC

  • aiac terraform for a highly available eks
  • aiac pulumi golang for an s3 with sns notification
  • aiac cloudformation for a neptundb

Generate Configuration Files

  • aiac dockerfile for a secured nginx
  • aiac k8s manifest for a mongodb deployment

Generate CI/CD Pipelines

  • aiac jenkins pipeline for building nodejs
  • aiac github action that plans and applies terraform and sends a slack notification