exoscale_security_group (Resource)

Manage Exoscale Security Groups.

Corresponding data source: exoscale_security_group.

Example Usage

resource "exoscale_security_group" "my_security_group" {
  name = "my-security-group"
}

Next step is to attach exoscale_security_group_rule(s) to the group.

Please refer to the examples directory for complete configuration examples.

Schema

Required

  • name (String) ❗ The security group name.

Optional

  • description (String) ❗ A free-form text describing the group.
  • external_sources (Set of String) A list of external network sources, in CIDR notation.
  • timeouts (Block, Optional) (see below for nested schema)

Read-Only

  • id (String) The ID of this resource.

Nested Schema for timeouts

Optional:

  • create (String)
  • delete (String)
  • read (String)

-> The symbol ❗ in an attribute indicates that modifying it, will force the creation of a new resource.

Import

An existing security group may be imported by <ID>:

terraform import \
  exoscale_security_group.my_security_group \
  f81d4fae-7dec-11d0-a765-00a0c91e6bf6