Skip to main content

okustera_security_group (Resource)

The okustera_security_group resource acts as a virtual firewall container for virtual machines and container interfaces.

Example Usage​

resource "okustera_security_group" "web_sg" {
name = "web-tier-firewall"
description = "Allows incoming HTTP/HTTPS and SSH traffic"
}

Schema​

Required​

  • name (String) Name of the security group.

Optional​

  • description (String) Purpose and description of the security group.

Read-Only Attributes​

  • id (String) Security group identifier UUID.

Import​

Existing security groups can be imported using their UUID:

terraform import okustera_security_group.web_sg <security_group_uuid>