Creates and manages IonosCloud Server objects.
Manages a Server on IonosCloud.
This resource will create an operational server. After this section completes, the provisioner can be called.
##Argument reference
name
- (Required)[string] The name of the server.
datacenter_id
- (Required)[string] The ID of a Virtual Data Center.
cores
- (Required)[integer] Number of server CPU cores.
ram
- (Required)[integer] The amount of memory for the server in MB.
image_name
- (Optional)[string] The name or ID of the image.
availability_zone
- (Optional)[string] The availability zone in which the server should exist. This property is immutable.
licence_type
- (Optional)[string] Sets the OS type of the server.
cpu_family
- (Optional)[string] CPU architecture on which server gets provisioned. Sets the CPU type. "AMD_OPTERON", "INTEL_XEON" or "INTEL_SKYLAKE".
volume
- (Required) See the Volume section.
nic
- (Required) See the NIC section.
boot_volume
- (Computed) The associated boot volume.
boot_cdrom
- (Optional)[string] The associated boot drive, if any.
boot_image
- (Optional)[string] The image or snapshot UUID / name. May also be an image alias. It is required if licence_type
is not provided.
primary_nic
- (Computed) The associated NIC.
primary_ip
- (Computed) The associated IP address.
firewallrule_id
- (Computed) The associated firewall rule.
ssh_key_path
- (Optional)[list] List of paths to files containing a public SSH key that will be injected into IonosCloud provided Linux images. Required for IonosCloud Linux images. Required if image_password
is not provided.
image_password
- (Optional)[string] Required if ssh_key_path
is not provided.
Resource Server can be imported using the resource id
, e.g.
Please note that for any secondary volume, you need to set the licence_type property to UNKNOWN