vmware / terraform-provider-vra

Terraform Provider for VMware Aria Automation
https://registry.terraform.io/providers/vmware/vra/
Mozilla Public License 2.0
101 stars 89 forks source link

When passing inputs in vra deployment for flavor its throws error sizing is required. #494

Closed Lalithchengala closed 1 year ago

Lalithchengala commented 1 year ago

Code of Conduct

This project has a Code of Conduct that all participants are expected to understand and follow:

vRA Version

Version 8.11.1.29538

Terraform Version

Terraform v1.3.7 on linux_amd64

vRA Terraform Provider Version

Affected Resource(s)

Terraform Configuration Files

resource "vra_deployment" "CentOS" { name = var.deployment_name description = "Deployment description"

catalog_item_id = data.vra_catalog_item.CentOS.id catalog_item_version = var.catalog_item_version project_id = data.vra_project.CentOS.id

inputs = { flavor = "small" image = "CentOS" count = 1 flag = false location = "" leaseDays = "" } timeouts { create = "30m" delete = "30m" update = "30m" } }

# Copy-paste your Terraform configurations here.
# For large Terraform configs, please use a service like Dropbox and share a link to the ZIP file.

Expected Behavior

when passing inputs in vra deployment for flavor=small should be taken into account

Actual Behavior

vra deployment is failing with error says sizing is required but not sure how to pass this sizing to flavor tried different ways to pass this value but nothing worked. Error: [POST /catalog/api/items/{id}/request][400] requestCatalogItemInstancesUsingPOST1BadRequest &{Message:'Sizing' is required. StatusCode:400}

Steps to Reproduce

Tried exactly the same way how it mentioned in this Git Repository but throwing me the error sizing is required. Can you please suggest me how to pass this value. ### Screenshots

Important Factoids

When I checked our VRA8 Environment the Json file consists value something like this "Sizing":{"Flavor":"Small"} If I try just flavor = small it is failing with sizing required

Community Note