anupampushkar
Contributor
Contributor

vRA terraform error Too many command line arguments.

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 
0 Kudos
2 Replies
vassilgourov
Contributor
Contributor

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-C...)

RuanS
Contributor
Contributor

Thanks had the same Issue and 0.14.11 works

Tags (1)
0 Kudos