github.com/jrasell/terraform@v0.6.17-0.20160523115548-2652f5232949/website/source/docs/providers/cloudstack/r/instance.html.markdown (about)

     1  ---
     2  layout: "cloudstack"
     3  page_title: "CloudStack: cloudstack_instance"
     4  sidebar_current: "docs-cloudstack-resource-instance"
     5  description: |-
     6    Creates and automatically starts a virtual machine based on a service offering, disk offering, and template.
     7  ---
     8  
     9  # cloudstack\_instance
    10  
    11  Creates and automatically starts a virtual machine based on a service offering,
    12  disk offering, and template.
    13  
    14  ## Example Usage
    15  
    16  ```
    17  resource "cloudstack_instance" "web" {
    18      name = "server-1"
    19      service_offering= "small"
    20      network_id = "6eb22f91-7454-4107-89f4-36afcdf33021"
    21      template = "CentOS 6.5"
    22      zone = "zone-1"
    23  }
    24  ```
    25  
    26  ## Argument Reference
    27  
    28  The following arguments are supported:
    29  
    30  * `name` - (Required) The name of the instance.
    31  
    32  * `display_name` - (Optional) The display name of the instance.
    33  
    34  * `group` - (Optional) The group name of the instance.
    35  
    36  * `service_offering` - (Required) The name or ID of the service offering used
    37      for this instance.
    38  
    39  * `network_id` - (Optional) The ID of the network to connect this instance
    40      to. Changing this forces a new resource to be created.
    41  
    42  * `network` - (Optional, Deprecated) The name or ID of the network to connect
    43      this instance to. Changing this forces a new resource to be created.
    44  
    45  * `ip_address` - (Optional) The IP address to assign to this instance. Changing
    46      this forces a new resource to be created.
    47  
    48  * `ipaddress` - (Optional, Deprecated) The IP address to assign to this instance.
    49      Changing this forces a new resource to be created.
    50  
    51  * `template` - (Required) The name or ID of the template used for this
    52      instance. Changing this forces a new resource to be created.
    53  
    54  * `project` - (Optional) The name or ID of the project to deploy this
    55      instance to. Changing this forces a new resource to be created.
    56  
    57  * `zone` - (Required) The name or ID of the zone where this instance will be
    58      created. Changing this forces a new resource to be created.
    59  
    60  * `user_data` - (Optional) The user data to provide when launching the
    61      instance.
    62  
    63  * `keypair` - (Optional) The name of the SSH key pair that will be used to
    64      access this instance.
    65  
    66  * `expunge` - (Optional) This determines if the instance is expunged when it is
    67      destroyed (defaults false)
    68  
    69  ## Attributes Reference
    70  
    71  The following attributes are exported:
    72  
    73  * `id` - The instance ID.
    74  * `display_name` - The display name of the instance.