layout | page_title | sidebar_current | description |
---|---|---|---|
oneandone |
1&1: oneandone_instance_size |
docs-oneandone-datasource-instance-size |
Fetches a predefined instance type for 1&1 servers. |
Fetches a predefined instance type for 1&1 servers
data "oneandone_instance_size" "sizeByName" {
name = "L"
}
data "oneandone_instance_size" "sizeByHardware" {
vcores = 2
ram = 4
}
resource "oneandone_server" "server" {
name = "Example"
image = "debian8-64min"
datacenter = "DE"
fixed_instance_size = "${data.oneandone_instance_size.sizeByName.id}"
...
}
The following arguments are supported, at least one is required:
name
-(Optional) Number of cores per processorram
- (Optional) Size of ram in GBvcores
- (Optional) Number of vcores
It exposes the following attributes
coresPerProcessor
- (Computed) The number of vcores per processorid
- (Computed) The ID of the instance typename
- (Computed) The Name of the instance typeram
- (Computed) The size of the ram in GBvcores
- (Computed) The number of vcores