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

Some outputs not created when using resource count #1

Open
u2mejc opened this issue May 3, 2016 · 0 comments
Open

Some outputs not created when using resource count #1

u2mejc opened this issue May 3, 2016 · 0 comments
Assignees
Labels

Comments

@u2mejc
Copy link
Contributor

u2mejc commented May 3, 2016

Outputs are not created for resources using configuration with a count variable.

Related: https://www.terraform.io/docs/configuration/resources.html

Current configuration generated for a count of 3:

output "aws_subnet.publicsub" {
  value = "${aws_subnet.publicsub.id}"
}

Should be:

output "aws_subnet.publicsub.0" {
  value = "${aws_subnet.publicsub.0.id}"
}
output "aws_subnet.publicsub.1" {
  value = "${aws_subnet.publicsub.1.id}"
}
output "aws_subnet.publicsub.2" {
  value = "${aws_subnet.publicsub.2.id}"
}
@u2mejc u2mejc self-assigned this May 3, 2016
@u2mejc u2mejc added the bug label May 3, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant