Hi Jordan

Currently it's not possible to select the host id using the terraform provider

https://registry.terraform.io/providers/cloudstack/cloudstack/latest/docs/resources/instance

There is no argument for hostid in terraform code for Cloudstack

Regards
Kiran

________________________________
From: jordan j <[email protected]>
Sent: 20 February 2023 12:57
To: [email protected] <[email protected]>
Subject: Re: Using terraform to spin custom instances?

Hello everyone,
One more question regarding the Terraform provider.
When deploying a new instance, is it possible to select the resident host?


Regards,
Jordan




 

On Mon, Jan 23, 2023 at 12:45 PM jordan j <[email protected]> wrote:

> Works like a charm! :)
>
> On Mon, Jan 23, 2023 at 10:44 AM Stephan Bienek <[email protected]>
> wrote:
>
>> Hi Jordan,
>>
>> it actually works but not too great documented.
>> Use the following example:
>>
>> resource "cloudstack_instance" "web" {
>>   name             = "server-1"
>>   service_offering = "custom"
>>   network_id       = "c4a3303c-376d-4d56-b336-1bd91cb130b6"
>>   template         = "d4c2f9c6-1d18-11ec-9173-50eb7122da94"
>>   zone             = "d4a81f75-5d92-415e-ab59-e85cc2ce56d9"
>>   details = {"cpuNumber" = "2", "memory" = "500"}
>> }
>>
>> Best regards,
>> Stephan
>>
>> > jordan j <[email protected]> hat am 23.01.2023 08:42 CET geschrieben:
>> >
>> >
>> > Dear everyone,
>> >
>> > I started playing with the Terraform provider. I noticed that there is
>> no
>> > way to choose custom resource values as my Compute Offering is custom.
>> Is
>> > there a way or that feature is not developed? Any advice is appreciated!
>> >
>> > Regard,
>> > Jordan
>>
>

Reply via email to