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

Outputs do not show for some lists #2739

Closed
catsby opened this issue Jul 15, 2015 · 4 comments
Closed

Outputs do not show for some lists #2739

catsby opened this issue Jul 15, 2015 · 4 comments
Labels

Comments

@catsby
Copy link
Contributor

catsby commented Jul 15, 2015

Trying to output the private IPs of an AWS Network Interface, but nothing is rendered:

Config:

provider "aws" {
  region = "us-east-1"
}

resource "aws_vpc" "default" {
  cidr_block = "10.40.0.0/19"
  tags {
    Name = "tf-eni-test"
  }
}

resource "aws_subnet" "private" {
  vpc_id            = "${aws_vpc.default.id}"
  availability_zone = "us-east-1a"
  cidr_block        = "10.40.0.0/22"
  tags {
    Name = "tf-eni-test"
  }
}

resource "aws_network_interface" "router" {
  subnet_id = "${aws_subnet.private.id}"
  tags {
    Name = "tf-eni-test"
  }
}

output "router" {
  value = "${join(",", aws_network_interface.router.private_ips)}" # outputs nothing
}

output "subnet" {
  value = "${aws_network_interface.router.subnet_id}"
}

Produces:

$ terraform apply
[everything creates successfully]

State path: terraform.tfstate

Outputs:

  subnet = subnet-ca80c593

Terraform show does show the private ips:

aws_network_interface.router:
  id = eni-53ae9c09
  attachment.# = 0
  private_ips.# = 1
  private_ips.1053885830 = 10.40.3.105
@catsby catsby added the core label Jul 15, 2015
@radeksimko
Copy link
Member

@catsby Does #2157 solve that problem?

@jszwedko
Copy link
Contributor

jszwedko commented Oct 5, 2015

@radeksimko #2157 fixed this for me, thank you!

@apparentlymart
Copy link
Contributor

Looks like this is fixed. Awesome!

@ghost
Copy link

ghost commented Apr 30, 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 30, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

4 participants