jeanvetorello opened a new issue, #246:
URL: https://github.com/apache/cloudstack-terraform-provider/issues/246

   ## Feature Request: Support for `serviceofferingdetails` in 
`cloudstack_service_offering`
   
   ### **Problem Statement**
   Currently, the `cloudstack_service_offering` resource doesn't support 
configuring `serviceofferingdetails`, which is essential for GPU instances that 
require `pciDevice` and `vgpuType` parameters.
   
   ### **Current Limitation**
   Users cannot create GPU service offerings directly with Terraform
   
   
   ### **Proposed Solution**
   Add support for `serviceofferingdetails` in the schema, similar to how other 
CloudStack Terraform providers handle it.
   
   **Suggested Schema:**
   ```hcl
   resource "cloudstack_service_offering" "gpu_offering" {
     name         = "gpu-a6000"
     display_text = "GPU A6000 Instance"
     cpu_number   = 4
     memory       = 16384
     
     # New feature request
     service_offering_details = {
       pciDevice = "Group of NVIDIA A6000 GPUs"
       vgpuType  = "A6000-8A"
     }
   }
   
   Implementation Notes
   The CloudStack API supports serviceofferingdetails in createServiceOffering 
and updateServiceOffering
   Similar functionality exists in other resources like 
cloudstack_network_offering
   Should support both create and update operations
   Should handle details removal (empty values)
   
   References
   CloudStack API Documentation: 
https://cloudstack.apache.org/api/apidocs-4.19/apis/createServiceOffering.html
   Current provider code: resource_cloudstack_service_offering.go
   
   Environment
   Provider Version: 0.6.0-rc3
   CloudStack Version: 4.19+
   Terraform Version: 1.0+
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to