2016-09-01 10:48:49 +02:00
|
|
|
---
|
|
|
|
layout: "cloudstack"
|
|
|
|
page_title: "CloudStack: cloudstack_affinity_group"
|
|
|
|
sidebar_current: "docs-cloudstack-resource-affinity-group"
|
|
|
|
description: |-
|
|
|
|
Creates an affinity group.
|
|
|
|
---
|
|
|
|
|
|
|
|
# cloudstack\_affinity\_group
|
|
|
|
|
|
|
|
Creates an affinity group.
|
|
|
|
|
|
|
|
## Example Usage
|
|
|
|
|
|
|
|
```
|
|
|
|
resource "cloudstack_affinity_group" "default" {
|
2016-09-01 11:19:37 +02:00
|
|
|
name = "test-affinity-group"
|
|
|
|
type = "host anti-affinity"
|
2016-09-01 10:48:49 +02:00
|
|
|
}
|
|
|
|
```
|
|
|
|
|
|
|
|
## Argument Reference
|
|
|
|
|
|
|
|
The following arguments are supported:
|
|
|
|
|
2017-02-18 23:48:50 +01:00
|
|
|
* `name` - (Required) The name of the affinity group. Changing this
|
2016-09-01 10:48:49 +02:00
|
|
|
forces a new resource to be created.
|
|
|
|
|
|
|
|
* `description` - (Optional) The description of the affinity group.
|
|
|
|
|
2017-02-18 23:48:50 +01:00
|
|
|
* `type` - (Required) The affinity group type. Changing this
|
2016-09-01 10:48:49 +02:00
|
|
|
forces a new resource to be created.
|
|
|
|
|
|
|
|
* `project` - (Optional) The name or ID of the project to register this
|
|
|
|
affinity group to. Changing this forces a new resource to be created.
|
|
|
|
|
|
|
|
## Attributes Reference
|
|
|
|
|
|
|
|
The following attributes are exported:
|
|
|
|
|
|
|
|
* `id` - The id of the affinity group.
|
2016-09-01 11:19:37 +02:00
|
|
|
* `description` - The description of the affinity group.
|