cloudstack-terraform-provider icon indicating copy to clipboard operation
cloudstack-terraform-provider copied to clipboard

Error using AutoScaleProfile

Open ferdinandopaes opened this issue 8 months ago • 0 comments

Hi,

I'm facing an error when I try create an AutoScaleProfile.

Error

Error: Error creating AutoScaleVmProfile : json: cannot unmarshal object into Go struct field CreateAutoScaleVmProfileResponse.otherdeployparams of type string

This error is showed with no other_deploy_params.

When I use other_deploy_params, adding just one argument, I have another error:

Error: Error creating AutoScaleVmProfile : CloudStack API error 431 (CSExceptionErrorCode: 9999): Unable to execute API command autoscalevmprofile due to invalid value networkids=7750f61d-749a-4b2b-966c-d8c5dc268ab6 for parameter otherdeployparams

autoscale.tf example

resource "cloudstack_autoscale_vm_profile" "this" {
  service_offering        = var.size
  template                = var.template_id
  zone                    = var.zone

  other_deploy_params     =  {
    networkids  = var.subnet.id
  }
  
}

ferdinandopaes avatar Apr 30 '25 20:04 ferdinandopaes