Skip to main content
Updated November 5, 2026 Manages a Raff security group: a named set of inbound/outbound rules that attach to VM NICs. Rule changes reach every attached VM within a few seconds, with no reboot. Rules are nested blocks; updating the rule list replaces the entire set on the API side.

Example — built from scratch

Example — seeded from a template

Templates copy a curated rule set at create time; you can then add explicit rule blocks to merge in extras. Get template IDs via raff security-group templates.

Argument reference

Required

Optional

rule block

Attribute reference (computed)

Lifecycle

Importing existing security groups

Permissions

The API key needs security_group.create, security_group.manage, and security_group.delete in the project. The system role Project Admin grants all of these.

Data sources

raff_vm

Attach security groups via the CLI or dashboard.

raff_vpc

Private networks the rules apply to.

CLI: raff security-group

Imperative equivalent (incl. templates).
Last modified on November 4, 2026