Looking for some assistance with deploying blueprints using Terraform with the vra7 provider. I have followed the setup instructions here, have the provider initialised, and can provision machines using blueprints already configured in vRA using the following very basic main.tf file:
provider "vra7" {
username = "serviceaccount"
password = "password"
tenant = "tenant"
host = "https://vrahost"
}
resource "vra7_resource" "machine" {
catalog_name = "UbuntuTerraformDeployment"
}
However when I try and add any variables such as the ones below, I have tried them all individually:
provider "vra7" {
username = "serviceaccount"
password = "password"
tenant = "tenant"
host = "https://vrahost"
}
resource "vra7_resource" "machine" {
catalog_name = "UbuntuTerraformDeployment"
catalog_configuration = {
lease_days = 1
}
resource_configuration = {
vSphere_Machine_1.description = "Deployed using Terraform"
vSphere_Machine_1.cpu = 4
vSphere_Machine_1.memory = 8192
}
deployment_configuration = {
description = "Terraform test deployment"
reasons = "Testing Terraform"
}
}
I get:
!!!!!!!!!!!!!!!!!!!!!!!!!!! TERRAFORM CRASH !!!!!!!!!!!!!!!!!!!!!!!!!!!!
Terraform crashed! This is always indicative of a bug within Terraform.
A crash log has been placed at "crash.log" relative to your current
working directory. It would be immensely helpful if you could please
report the crash with Terraform[1] so that we can fix this.
When reporting bugs, please include your terraform version. That
information is available on the first line of crash.log. You can also
get it by running 'terraform --version' on the command line.
[1]: https://github.com/hashicorp/terraform/issues
!!!!!!!!!!!!!!!!!!!!!!!!!!! TERRAFORM CRASH !!!!!!!!!!!!!!!!!!!!!!!!!!!!
Any tips where I am going wrong would be appreciated.