jeanvetorello opened a new pull request, #247:
URL: https://github.com/apache/cloudstack-terraform-provider/pull/247

   ## Description
   This PR implements support for `service_offering_details` in the 
`cloudstack_service_offering` resource, enabling GPU configuration and other 
advanced settings through the CloudStack API.
   
   ## Changes Made
   - ✅ Added `service_offering_details` schema attribute as TypeMap
   - ✅ Implemented create functionality with CloudStack API integration  
   - ✅ Added read functionality with helper function to filter built-in details
   - ✅ Set ForceNew behavior (details can only be set at creation)
   - ✅ Added comprehensive test coverage
   - ✅ Updated documentation with examples
   
   ## Testing
   - ✅ Syntax validation passed
   - ✅ Unit tests added and passing
   - ✅ **Tested on real CloudStack environment**
   - ✅ Successfully created GPU service offerings with custom details
   - ✅ Verified API integration and state management
   
   ## Example Usage
   ```hcl
   resource "cloudstack_service_offering" "gpu_offering" {
     name         = "gpu-a6000"
     display_text = "GPU A6000 Instance"
     cpu_number   = 4
     memory       = 16384
     
     service_offering_details = {
       pciDevice = "Group of NVIDIA A6000 GPUs"
       vgpuType  = "A6000-8A"
     }
   }
   
   
   Addresses Issue
   Closes #246
   
   Compatibility
   CloudStack: 4.19+
   Terraform: 1.0+
   Backward compatible: No breaking changes
   


-- 
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