hashicorp / terraform-provider-terraform

Terraform terraform provider
https://www.terraform.io/docs/providers/terraform/
Mozilla Public License 2.0
23 stars 22 forks source link

defaults values can't be nothing but string #21

Open Pryz opened 6 years ago

Pryz commented 6 years ago

If you have this remote state :

data "terraform_remote_state" "main" {
  backend = "atlas"

  config {
    name = "${var.environment}"
  }

  defaults {
    subnets = []
  }
}

Trying to use this data source with :

output "subnets" {
  value="${data.terraform_remote_state.main.subnets}"
}

Will fail with the following :

defaults (subnets): '' expected type 'string', got unconvertible type '[]interface {}'

Terraform version : v0.11.3 Provider version : v1.0.2