Skip to main content

Infrastructure as Code

RBS brings cloud provisioning into the same ecosystem as your build system. Define infrastructure in pure RBS DSL alongside your application code, with full compatibility with the Terraform provider ecosystem.

Why RBS for Infrastructure?

Getting Started

1. Register a Provider

Create an infra.rbs file in your project:

2. Define Resources

3. Plan Changes

Output:

4. Apply Changes

Supported Providers

RBS uses the Terraform Plugin Protocol (v5/v6), giving you access to 5000+ providers:
Providers are automatically downloaded from the Terraform registry, verified via SHA256, and cached in .rbs/infra/plugins/.

Resource References

Reference other resources using :name syntax:

Workspaces (Multi-Environment)

Define workspaces for environment-specific values:

Reusable Components

Create reusable infrastructure modules using functions:

Cloud-Agnostic Abstractions

Define infrastructure once, deploy to any cloud:

Build Integration

Reference build outputs in infrastructure:

Commands

State Management

State files are stored per workspace in .rbs/infra/state/:

Migration from Terraform

Convert HCL to RBS DSL:
Import existing resources: