I try to load my own image (uploaded to Image Manger) in Terraform code like this:
resource "profitbricks_server" "webserver" {
name = "webserver"
datacenter_id = "${profitbricks_datacenter.main.id}"
cores = 1
ram = 1024
availability_zone = "AUTO"
cpu_family = "AMD_OPTERON"
volume {
name = "system"
image_name = "_uuid_of_my_image_"
size = 60
disk_type = "HDD"
availability_zone = "AUTO"
image_password = "password"
}
}
But it complains
"httpStatus" : 422,
"messages" : [ {
"errorCode" : "100",
"message" : "[(root).entities.volumes.items.[0].properties.image] Not a public Profitbricks image:_uuid_of_my_image_"
}
Does this mean the self-uploaded images are not supported in Terraform-ProfitBricks provider?
Yes I've tried that way, in that case it will complain