Skip to main content
A module is the core primitive in Ravion for both tracking and managing your services and supporting infrastructure.

A module is an abstraction layer over Terraform

Developers and AI agents shouldn’t work with Terraform directly. It’s too easy to get a resource wrong, drift from your standards, or break production. Instead, they describe what they need in a simple YAML file or form. Ravion translates that into pre-vetted Terraform modules that your platform team controls, and runs them in your cloud account. Here’s what happens when someone creates an S3 bucket with the rvn-s3 module:
  1. The developer configures. They pick S3 Bucket from the catalog and fill in a short form: a bucket name, versioning, and maybe a lifecycle rule. The same inputs work from the dashboard, the project config file, the CLI, the API, or an AI agent.
  2. The module translates. The module definition validates the inputs, fills in secure defaults (private, encrypted, versioned), and maps each input to a Terraform variable with a template expression such as << module.input.name >>.
  3. Terraform provisions. Ravion runs plan, approval, and apply against the module’s Terraform code in a stack change pipeline. For rvn-s3, that’s 18 variables and 8 AWS resources the developer never has to write.
  4. Resources land in your cloud account. The stack’s outputs, such as the bucket name and ARN, flow back to the module, where you see them and where other modules can reference them.

What each layer looks like

The same setting, versioning, appears at every layer. Each layer is written by a different person:

Who works at which layer

A developer only needs the first layer. A platform team can work at all three.

Why put a layer between developers and Terraform

  • Self-service without Terraform expertise. Developers create infrastructure from a form or a few lines of YAML. They don’t need to know which eight resources make up a secure S3 bucket.
  • Guardrails you control. The module definition decides which inputs exist, what values are valid, and what the defaults are. Inputs that fail the definition’s validation rules are rejected before Terraform runs.
  • One path for every change. Every change runs through a stack pipeline that plans and applies Terraform, with approval following that pipeline’s rules. Nobody needs to run terraform apply from a laptop.
  • Improve once, roll out everywhere. Module definitions are versioned with semver. Fix or improve a module once, then upgrade each instance to the new version.
  • More than infrastructure. The same module also carries the build, deploy, logs, metrics, and links for the service it creates.

It’s not a black box

The abstraction hides Terraform from developers who don’t need it, not from people who do:
  • Every module with a stack shows the full Terraform plan, the provisioned resources, and the state history. See Stack.
  • Most standard-library modules, including rvn-s3, include an Advanced Terraform variables input (advanced_terraform_variables) that overrides generated Terraform variables for one-off cases. rvn-stack is the exception: it takes Terraform variables directly through its tf_variables input.
  • You can write your own module definitions around your own Terraform, or run existing Terraform as-is with the rvn-stack module.

Module capabilities

A module’s definition determines which capabilities its instances have — a Terraform stack, build config, deploy manager, and so on: For example, our VPC Network module has only a stack. But the ECS Web Server module has all of the above capabilities. For how modules relate to stacks, deploys, and pipelines, see Core concepts. By default, you have access to the Ravion standard library of module definitions. You can see the available module definitions via the Catalog page in the dashboard or via the /module-definitions endpoint. You can also create your own module definitions.

Module hierarchy

Catalog is used to refer to the module definitions available to your organization. These include the Ravion standard library of modules with type rvn-* and any custom modules you’ve added. Module definitions are versioned with semver, and each module instance is an instance of a specific version.