ibm_security_group

Provides a networking security group resource that controls access to the public and private interfaces of a virtual server instance. This resource allows security groups to be created, updated, and deleted. To create rules for the security group, use the security_group_rule resource.

For additional details, see the IBM Cloud Infrastructure (SoftLayer) API docs.

Example Usage

resource "ibm_security_group" "sg1" {
    name = "sg1"
    description = "allow my app traffic"
}

Argument Reference

The following arguments are supported:

  • name - (Required, string) The descriptive name used to identify the security group.
  • description - (Optional, string) Additional details to describe the security group.

Attribute Reference

The following attributes are exported:

  • id - The unique identifier of the security group.