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

Output disappearing when re-applying #15918

Closed
jnoxon opened this issue Aug 25, 2017 · 3 comments
Closed

Output disappearing when re-applying #15918

jnoxon opened this issue Aug 25, 2017 · 3 comments

Comments

@jnoxon
Copy link

jnoxon commented Aug 25, 2017

As requested (#15165) I am opening a new issue for this.

Terraform v0.9.11

variable "use_random" { default = false }
variable "number" { default = 5 }

resource "random_id" "optional" {
   count = "${var.use_random}"
   byte_length = 1
}

output "result" {
  value = "${element(compact(concat(random_id.optional.*.id, list(var.number))),0)}"
}

If you apply this with use_random = true and reapply with use_random = false, the result output disappears on the second apply. Applying it again with no changes, it comes back.

@apparentlymart
Copy link
Contributor

Thanks for filing this new issue, @jnoxon.

We'll take a deeper look into it soon.

@apparentlymart apparentlymart added config and removed core labels Nov 8, 2018
@hashibot
Copy link
Contributor

Hello! 🤖

This issue relates to an older version of Terraform that is no longer in active development, and because the area of Terraform it relates to has changed significantly since the issue was opened we suspect that the issue is either fixed or that the circumstances around it have changed enough that we'd need an updated issue report in order to reproduce and address it.

If you're still seeing this or a similar issue in the latest version of Terraform, please do feel free to open a new bug report! Please be sure to include all of the information requested in the template, even if it might seem redundant with the information already shared in this issue, because the internal details relating to this problem are likely to be different in the current version of Terraform.

Thanks!

@ghost
Copy link

ghost commented Sep 27, 2019

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 Sep 27, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants