terraform-provider-stackitp.../docs/resources/security_group.md
2025-03-26 09:23:25 +01:00

1.3 KiB

page_title subcategory description
stackit_security_group Resource - stackit Security group resource schema. Must have a region specified in the provider configuration.

stackit_security_group (Resource)

Security group resource schema. Must have a region specified in the provider configuration.

Example Usage

resource "stackit_security_group" "example" {
  project_id = "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
  name       = "my_security_group"
  labels = {
    "key" = "value"
  }
}

Schema

Required

  • name (String) The name of the security group.
  • project_id (String) STACKIT project ID to which the security group is associated.

Optional

  • description (String) The description of the security group.
  • labels (Map of String) Labels are key-value string pairs which can be attached to a resource container
  • stateful (Boolean) Configures if a security group is stateful or stateless. There can only be one type of security groups per network interface/server.

Read-Only

  • id (String) Terraform's internal resource ID. It is structured as "project_id,security_group_id".
  • security_group_id (String) The security group ID.