We have some problem creating a datacenter with terraform scripts. If we used ProfitBricks Images like "ubuntu-16.04", it's all fine. But if we used custom images, we uploaded to the same datacenter location, we get the error that the image cannot found. Have anyone a idea whats here the problem? Is it possible to use custom images in terraform scripts? We have successful used the custom image creating a Volume in the DCD.
Could not find an image/imagealias/snapshot that matches BaseImage_16_04
resource "profitbricks_server" "testserver01" {
name = "testserver01"
datacenter_id = "${profitbricks_datacenter.datacenter01.id}"
cores = 4
ram = 16384
availability_zone = "AUTO"
cpu_family = "AMD_OPTERON"
volume {
name = "system_volume-01"
image_name = "BaseImage_16_04"
size = 10
disk_type = "HDD"
ssh_key_path = ["${var.public_key_path}", "${var.public_key_path_intern}"]
image_password = "${var.volume_password}"
}
nic {
....
}
}
Thanks Michael