Skip to main content

Build cloud infrastructure with IaC Code

From one request to reviewable, executable, deployable cloud infrastructure changes.

pip install iac-code
iac-code terminal demo

Why IaC Code?

Manage cloud infrastructure with natural language

Bring resource planning, template generation, change review, and deployment operations into one terminal conversation.

create a vpc

Thought for 0.7s

Skill(iac-aliyun)

Skill 'iac-aliyun' loaded (inline). 4.9k input · 76 output

Thought for 2.3s

Read(vpc.md)

Read 54 lines

Read(ros-template.md)

Read 155 lines

Read(template-parameters.md)

Read 206 lines (ctrl+o to expand)

Thought for 4.8s

Write(/tmp/vpc-template.yml)

Support multiple IaC engines

Use Terraform and Alibaba Cloud ROS in one workflow to produce reviewable, executable infrastructure changes.

Create a VPC with Terraform

Thought for 0.9s

Skill(iac-aliyun)

Skill 'iac-aliyun' loaded (inline).

Thought for 1.6s

Read(vpc.md)

Read 54 lines

Read(terraform-template.md)

Read 101 lines

Read(template-parameters.md)

Read 206 lines (ctrl+o to expand)

Thought for 5.4s

Bash(mkdir -p /tmp/tf-vpc)

Exit code: 0

Write(/tmp/tf-vpc/main.tf)

Successfully wrote 32 lines to /tmp/tf-vpc/main.tf

Support multiple AI providers

Connect multiple model providers so teams can choose AI capabilities by model, budget, and compliance needs.

Select provider

Third-party

Alibaba Cloud (current)

ZhiPu AI

Kimi

MiniMax

Volcengine

SiliconFlow

DeepSeek

OpenAI

Anthropic

Google Gemini

Azure OpenAI

OpenRouter

Local

Compatible

Agentic workflow

Let the agent understand context, call tools, inspect results, and settle deliverable infrastructure changes.

Found all available resources. Selected these parameters for you:

ParameterValueDescription

Zonecn-beijing-lecs.g7.large in stock

Instance spececs.g7.large2vCPU / 8GB general purpose

Imagealiyun_3_x64_20G_alibase_20260326.vhdAlibaba Cloud Linux 3.2104 LTS 64-bit

System disk typecloud_essdESSD cloud disk

Confirm deployment to cn-beijing?

Processed 1m 24s

ok

ROS Stack(CreateStack cn-beijing)

my-ecs-stack(f60fb4c6-2fb4-4f68-8fcc-e8cd955df858) created successfully (27s) (ctrl+o to expand)

Deployment succeeded ✅ Stack my-ecs-stack was created in cn-beijing (27s).

Query output:

Aliyun API(GetStack ros cn-beijing)

Call succeeded (ctrl+o to expand)

ECS instance created successfully. Details:

ItemValue

Instance IDi-2ze6c7wo4k2ss4uhs3xz

Public IP8.141.21.208

Private IP192.168.0.194

Zonecn-beijing-l

Spececs.g7.large (2vCPU / 8GB)

ImageAlibaba Cloud Linux 3.2104 LTS 64-bit

System diskcloud_essd 40GB

How to use IaC Code?

Interactive mode

Start a terminal session, refine requirements, review templates, run tools, and complete infrastructure tasks across turns.

iac-code

add nginx

I’ll add an Nginx deployment to the existing stack. First, I’ll read best practices for running commands in ROS templates.

Read(ros-template.md)

Read 153 lines (ctrl+o to expand)

Now updating the template: add ALIYUN::ECS::RunCommand to install Nginx and add the access URL output.

Read(ecs-template.yml)

Read 144 lines (ctrl+o to expand)

Update(/tmp/ecs-template.yml)

Successfully edited /tmp/ecs-template.yml (ctrl+o to expand)

Validate template:

Aliyun API(ValidateTemplate ros cn-hangzhou)

Call succeeded (ctrl+o to expand)

Template validation passed ✅ Added InstallNginx resource (RunCommand) and Console.NginxUrl output.

Headless mode

Pass a single prompt to IaC Code for scripts, pipelines, and automation systems.

iac-code --prompt "Create a VPC" --output-format stream-json

iac-code --prompt "Create a VPC" --output-format stream-json

{"message_id":"msg_cf0468624166472a604c499","type":"message_start"}

{"text":"The","type":"thinking_delta"}

{"text":" user wants to create","type":"thinking_delta"}

{"text":" a VPC on","type":"thinking_delta"}

{"text":" Alibaba Cloud. This","type":"thinking_delta"}

{"text":" is a direct cloud","type":"thinking_delta"}

{"text":" resource creation request,","type":"thinking_delta"}

{"text":" not a","type":"thinking_delta"}

{"text":" template generation request.","type":"thinking_delta"}

{"text":" I should use","type":"thinking_delta"}

{"text":" the aliyun","type":"thinking_delta"}

{"text":"_api tool to","type":"thinking_delta"}

{"text":" create a VPC","type":"thinking_delta"}

{"text":" directly.\n\n","type":"thinking_delta"}

{"text":"Let me create a VPC in","type":"thinking_delta"}

{"text":" the default region (cn-beijing).","type":"thinking_delta"}

{"tool_use_id":"call_5228445ffe4640aa9521c3c9","name":"aliyun_api","type":"tool_use_start"}

{"tool_use_id":"call_5228445ffe4640aa9521c3c9","partial_json":"{\"Product\":","type":"tool_input_delta"}

Start using IaC Code

Install once, then use interactive mode or run IaC Code headlessly in automation.

pip install iac-code