VMware Aria Automation Tools

 View Only
  • 1.  vRA terraform error Too many command line arguments.

    Posted Dec 19, 2021 12:51 PM

    When running Terraform in vRA with below code, i am getting error "16:46:45 Too many command line arguments. Did you mean to use -chdir? "

     Terraform init failure: Exit code 1

    ======================================

    # Connect VMware vCloud Director Provider
    provider "vcd" {
    user = ""
    password = ""
    org = "System"
    max_retry_timeout = 60
    allow_unverified_ssl = "true"
    }
    # Create new vCloud Org
    resource "vcd_org" "my-org" {
    name = "my-org"
    full_name = "My organization"
    description = "The pride of my work"
    is_enabled = "true"
    delete_recursive = "true"
    delete_force = "true"

    vapp_lease {
    maximum_runtime_lease_in_sec = 3600 # 1 hour
    power_off_on_runtime_lease_expiration = true
    maximum_storage_lease_in_sec = 0 # never expires
    delete_on_storage_lease_expiration = false
    }
    vapp_template_lease {
    maximum_storage_lease_in_sec = 604800 # 1 week
    delete_on_storage_lease_expiration = true
    }
    }
     
     
    Need everyone support, thanks 


  • 2.  RE: vRA terraform error Too many command line arguments.

    Posted Jan 18, 2022 10:27 AM

    I read somewhere that the latest supported Terraform version is 0.14.11. So what worked for me was to use this version when updating the Terraform version within vRA (https://docs.vmware.com/en/vRealize-Automation/8.5/Using-and-Managing-Cloud-Assembly/GUID-56EFBD96-C294-4ED7-B162-E1059CE3DF0E.html)



  • 3.  RE: vRA terraform error Too many command line arguments.

    Posted Feb 16, 2022 12:15 PM

    Thanks had the same Issue and 0.14.11 works