Example — built from scratch
Example — seeded from a template
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 needssecurity_group.create, security_group.manage, and security_group.delete in the project. The system role Project Admin grants all of these.
Data sources
Related
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).