github.com/nathanielks/terraform@v0.6.1-0.20170509030759-13e1a62319dc/website/source/docs/providers/cloudstack/r/affinity_group.html.markdown (about)

     1  ---
     2  layout: "cloudstack"
     3  page_title: "CloudStack: cloudstack_affinity_group"
     4  sidebar_current: "docs-cloudstack-resource-affinity-group"
     5  description: |-
     6    Creates an affinity group.
     7  ---
     8  
     9  # cloudstack_affinity_group
    10  
    11  Creates an affinity group.
    12  
    13  ## Example Usage
    14  
    15  ```hcl
    16  resource "cloudstack_affinity_group" "default" {
    17    name = "test-affinity-group"
    18    type = "host anti-affinity"
    19  }
    20  ```
    21  
    22  ## Argument Reference
    23  
    24  The following arguments are supported:
    25  
    26  * `name` - (Required) The name of the affinity group. Changing this
    27      forces a new resource to be created.
    28  
    29  * `description` - (Optional) The description of the affinity group.
    30  
    31  * `type` - (Required) The affinity group type. Changing this
    32      forces a new resource to be created.
    33  
    34  * `project` - (Optional) The name or ID of the project to register this
    35      affinity group to. Changing this forces a new resource to be created.
    36  
    37  ## Attributes Reference
    38  
    39  The following attributes are exported:
    40  
    41  * `id` - The id of the affinity group.
    42  * `description` - The description of the affinity group.