Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

core: terraform show doesn't display maps & lists correctly #6931

Closed
radeksimko opened this issue May 30, 2016 · 1 comment · Fixed by #6958
Closed

core: terraform show doesn't display maps & lists correctly #6931

radeksimko opened this issue May 30, 2016 · 1 comment · Fixed by #6958

Comments

@radeksimko
Copy link
Member

Terraform Version

Built from master (fcc3736e6bb850e51c240fda5c033888f13dcb34).

Terraform Configuration Files

provider "aws" {
    region = "us-west-2"
}

data "aws_availability_zones" "us-west-2" {}

output "zones" {
    value = "${data.aws_availability_zones.us-west-2.instance}"
}

Expected Behavior

$ terraform show
data.aws_availability_zones.us-west-2:
  id = 2016-05-30 09:19:43.507129756 +0000 UTC
  instance.# = 3
  instance.0 = us-west-2a
  instance.1 = us-west-2b
  instance.2 = us-west-2c


Outputs:

zones = [
  us-west-2a
  us-west-2b
  us-west-2c
]

Actual Behavior

$ terraform show
data.aws_availability_zones.us-west-2:
  id = 2016-05-30 09:19:43.507129756 +0000 UTC
  instance.# = 3
  instance.0 = us-west-2a
  instance.1 = us-west-2b
  instance.2 = us-west-2c


Outputs:

zones = %!s(PANIC=interface conversion: interface is []interface {}, not string)

Steps to Reproduce

  1. terraform apply
  2. terraform show

References

cc @jen20

@ghost
Copy link

ghost commented Apr 25, 2020

I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues.

If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.

@ghost ghost locked and limited conversation to collaborators Apr 25, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant