terraform-provider-vra7 icon indicating copy to clipboard operation
terraform-provider-vra7 copied to clipboard

Output issue with resource_configuration

Open supernini opened this issue 4 years ago • 9 comments

vRA 7.5 version The vRA 7.5 version where is issue is found. Terraform version 0.12.24 **terraform-provider-vra7 plugin version 1.0.1

Describe the bug When it try to output my result, i'm not able to acces

To Reproduce Steps to reproduce the behavior:

  1. Terraform config file
resource "vra7_deployment" "windows" {
  count             = 1
...
  resource_configuration {
    component_name = "server1"
    configuration = {
      hostname = "ServerName"
   ...
   }
  ....
}
output "machine-names" {
  value = ["${vra7_deployment.windows[*].resource_configuration.server1.hostname}"]
}
  1. Terraform command terraform apply
  2. Error `Error: Unsupported attribute

on main.tf line 125, in output "machine-names": 125: value = ["${vra7_deployment.windows[*].resource_configuration.server1.hostname}"]

This value does not have any attributes.` (server1 is underlined)

Expected behavior It should output the hostname

supernini avatar May 19 '20 16:05 supernini