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.
This would be answered by some one who are expert in terraform, not from VRA troubleshooting point.
Solved needed the vRA provider plugin rebuilding Terraform crashes on plan · Issue #52 · vmware/terraform-provider-vra7 · GitHub
Thanks for sharing this info
Mark the posts if it was helpful