Resource
dcloud_security_group
A security group: a firewall attached to instances. Rules are separate dcloud_security_group_rule resources, so adding one never replaces the group.
Example Usage
resource "dcloud_security_group" "web" {
name = "web"
description = "HTTPS from anywhere"
}Schema
Required
name(String) A display name. Up to 64 characters. Changing it replaces the resource.
Optional
description(String) Free text; omitted: none. Up to 255 characters. Changing it replaces the resource.project(String) The project (its slug) the resource lives in. At create: this, else the provider'sproject, else Default. Changing it moves the resource and its parts; it is never replaced.tags(Map of String) Tags, key → value. Once set here, only these keys are managed; tags Deutsche Cloud adds itself are left alone.
Read-Only
id(String) The resource's id.vpc_id(String) The VPC the group belongs to.
Import
Import is supported using the following syntax:
The terraform import command can be used, for example:
terraform import dcloud_security_group.web <security-group-id>Generated from the provider's schema.
Related