Skip to content
This repository has been archived by the owner on Jul 26, 2021. It is now read-only.

Files

Latest commit

544cf84 · Jan 16, 2019

History

History
54 lines (37 loc) · 1.32 KB

security_group.html.markdown

File metadata and controls

54 lines (37 loc) · 1.32 KB
layout page_title sidebar_current description
cloudstack
CloudStack: cloudstack_security_group
docs-cloudstack-resource-security-group
Creates a security group.

cloudstack_security_group

Creates a security group.

Example Usage

resource "cloudstack_security_group" "default" {
  name        = "allow_web"
  description = "Allow access to HTTP and HTTPS"
}

Argument Reference

The following arguments are supported:

  • name - (Required) The name of the security group. Changing this forces a new resource to be created.

  • description - (Optional) The description of the security group. Changing this forces a new resource to be created.

  • project - (Optional) The name or ID of the project to create this security group in. Changing this forces a new resource to be created.

Attributes Reference

The following attributes are exported:

  • id - The ID of the security group.

Import

Security groups can be imported; use <SECURITY GROUP ID> as the import ID. For example:

terraform import cloudstack_security_group.default e54970f1-f563-46dd-a365-2b2e9b78c54b

When importing into a project you need to prefix the import ID with the project name:

terraform import cloudstack_security_group.default my-project/e54970f1-f563-46dd-a365-2b2e9b78c54b