Skip to main content

Your AI-powered Infrastructure as Code assistant

Project description

iac-code

AI-powered Infrastructure as Code assistant for cloud infrastructure through natural language interaction. Currently supports Alibaba Cloud ROS and Terraform workflows.

Test PyPI Package Python

Language: English | 中文 | Español | Français | Deutsch | 日本語 | Português

Documentation: https://aliyun.github.io/iac-code/

iac-code demo

Installation

IaC Code requires Python 3.10 or later. It supports macOS, Linux, and Windows.

Windows note: On Windows, Git for Windows must be installed to provide the bash shell used by the tool execution environment. If Git Bash is installed but not on PATH, set the IAC_CODE_GIT_BASH_PATH environment variable.

pip install iac-code

Usage

On first use, configure the LLM provider and IaC cloud service by entering /auth in interactive mode.

Interactive Mode

Run directly to enter the interactive REPL:

iac-code

Non-Interactive Mode

Pass a one-shot prompt via --prompt:

iac-code --prompt "Create a VPC and two ECS instances"

Reading from stdin is also supported:

echo "Create an OSS Bucket" | iac-code --prompt -

Contributing

Install uv, then:

make install   # install dependencies and pre-commit hooks
make dev       # run in debug mode
make test      # run tests
make lint      # run linters
make format    # format code

See the Contributing Guide for details.

Contact Us

DingTalk Discord
DingTalk Discord

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

iac_code-0.8.0.tar.gz (1.3 MB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

iac_code-0.8.0-py3-none-any.whl (1.5 MB view details)

Uploaded Python 3

File details

Details for the file iac_code-0.8.0.tar.gz.

File metadata

  • Download URL: iac_code-0.8.0.tar.gz
  • Upload date:
  • Size: 1.3 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.2

File hashes

Hashes for iac_code-0.8.0.tar.gz
Algorithm Hash digest
SHA256 c6f666a66797b4cafb9d4f67761487f855da3732ba614c73dbd23228b7bb5b67
MD5 432c78f2a4866363699a585f75c05ecb
BLAKE2b-256 f22f49ea0b36f22c599ff8bac7bfa5987a8bc2d946e399e3371a3f8b66706a93

See more details on using hashes here.

File details

Details for the file iac_code-0.8.0-py3-none-any.whl.

File metadata

  • Download URL: iac_code-0.8.0-py3-none-any.whl
  • Upload date:
  • Size: 1.5 MB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.2

File hashes

Hashes for iac_code-0.8.0-py3-none-any.whl
Algorithm Hash digest
SHA256 2ffb0acb8465061f3215b0721a25db31505a6c4a9939ec8a14f25de57d999a00
MD5 2aa88b25b6c8eeb0f6b6c647cd85984c
BLAKE2b-256 80f022382ba6e18ddb26abd3023e03ed51ced1b88d7bc8970e7cdfadb360efab

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page