github.com/danp/terraform@v0.9.5-0.20170426144147-39d740081351/website/source/docs/providers/oneandone/r/server.html.markdown (about) 1 --- 2 layout: "oneandone" 3 page_title: "1&1: oneandone_server" 4 sidebar_current: "docs-oneandone-resource-server" 5 description: |- 6 Creates and manages 1&1 Server. 7 --- 8 9 # oneandone\_server 10 11 Manages a Server on 1&1 12 13 ## Example Usage 14 15 ```hcl 16 resource "oneandone_server" "server" { 17 name = "Example" 18 description = "Terraform 1and1 tutorial" 19 image = "ubuntu" 20 datacenter = "GB" 21 vcores = 1 22 cores_per_processor = 1 23 ram = 2 24 ssh_key_path = "/path/to/prvate/ssh_key" 25 hdds = [ 26 { 27 disk_size = 60 28 is_main = true 29 } 30 ] 31 32 provisioner "remote-exec" { 33 inline = [ 34 "apt-get update", 35 "apt-get -y install nginx", 36 ] 37 } 38 } 39 ``` 40 41 ## Argument Reference 42 43 The following arguments are supported: 44 45 * `cores_per_processor` -(Required) Number of cores per processor 46 * `datacenter` - (Optional) Location of desired 1and1 datacenter. Can be `DE`, `GB`, `US` or `ES` 47 * `description` - (Optional) Description of the server 48 * `firewall_policy_id` - (Optional) ID of firewall policy 49 * `hdds` - (Required) List of HDDs. One HDD must be main. 50 * `*disk_size` -(Required) The size of HDD 51 * `*is_main` - (Optional) Indicates if HDD is to be used as main hard disk of the server 52 * `image` -(Required) The name of a desired image to be provisioned with the server 53 * `ip` - (Optional) IP address for the server 54 * `loadbalancer_id` - (Optional) ID of the load balancer 55 * `monitoring_policy_id` - (Optional) ID of monitoring policy 56 * `name` -(Required) The name of the server. 57 * `password` - (Optional) Desired password. 58 * `ram` -(Required) Size of ram. 59 * `ssh_key_path` - (Optional) Path to private ssh key 60 * `vcores` -(Required) Number of virtual cores.