CodeBleu commented on PR #138: URL: https://github.com/apache/cloudstack-terraform-provider/pull/138#issuecomment-2427922804
@poddm Can you add the updated docs to this PR as well? I believe you had docs on the other PR you closed, but there doesn't appear to be updated docs for this. I have pulled down your branch to test, and am still having issues with needing to specify the `domain` or `domainid`. I get the following error: ``` │ Error: Error creating service offering │ │ with cloudstack_service_offering_fixed.standard_offering["8-8"], │ on service_offerings.tf line 21, in resource "cloudstack_service_offering_fixed" "standard_offering": │ 21: resource "cloudstack_service_offering_fixed" "standard_offering" { │ │ Could not create fixed offering, unexpected error: CloudStack API error 431 (CSExceptionErrorCode: 9999): Unable to execute API command createserviceoffering due to invalid value. Invalid parameter domainid value="79151a13-70ff-4ddc-918e-8d8deab2c289" due to incorrect │ long value format, or entity does not exist or due to incorrect parameter annotation for the field in api cmd class. ``` I'm using it like this: ``` resource "cloudstack_service_offering_fixed" "standard_offering" { for_each = local.cpu_ram_map name = "ACE-${each.value.cpu}C${each.value.cpu}-${each.value.ram}R${each.value.ram}-S" domain_ids = [local.domain_id] display_text = "ACE-${each.value.cpu}C${each.value.cpu}-${each.value.ram}R${each.value.ram}-S" cpu_number = each.value.cpu cpu_speed = var.standard_cpu_speed host_tags = "standard" storage_tags = "standard_storage" memory = each.value.ram * 1024 # Convert GB to MB offer_ha = false } ``` my locals ``` locals { cpus = [1, 2, 4, 8, 16, 32, 64] rams = [1, 2, 4, 8, 24, 32, 40, 48, 56, 64, 128] cpu_ram_combinations = flatten([ for cpu in local.cpus : [ for ram in local.rams : { cpu = cpu ram = ram } ] ]) # Create a map for for_each cpu_ram_map = { for combination in local.cpu_ram_combinations : "${combination.cpu}-${combination.ram}" => combination } domain_id = "79151a13-70ff-4ddc-918e-8d8deab2c289" } ``` -- 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: dev-unsubscr...@cloudstack.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org