-
Notifications
You must be signed in to change notification settings - Fork 9.7k
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
panic: value is marked, so must be unmarked first - for loop in output #27375
Comments
Same error with a for_each loop too. |
Hi! Thank you for reporting this! Based on your errors, I believe that this is probably a valid issue, and in order to hand it off to engineers to be fixed I need to reproduce it locally. To do that, I have to be able to run this and run it on my workstation without inventing any details in order to be confident we're seeing the same behavior. As-is, the example case you provided has a bunch of variables that I don't have the data for. It would be super helpful if you could replace those with static data or declare variables so I don't have to invent fake data to reproduce your crash case. @clement-pruvot the same goes for you - you may, or may not be seeing the same underlying bug, and so if you can come up with a simple reproduction case, we can confirm whether the fix we make for the parent issue also fixes the issue you're seeing. Can you both please restate your reproduction cases such that I can copy-paste it and run it locally? If you need to use providers, this would ideally use the null resource provider rather than a real provider in order to minimize external dependencies. |
@iamalirezaj I'm not sure why you think this Reproduction case below, panics with main.tf variable "bar" {
default = "nah"
sensitive = true
}
module "foo" {
source = "./foo"
test = var.bar
} foo/main.tf: variable "test" {
type = string
validation {
condition = var.test != "nope"
error_message = "Value must not be \"nope\"."
}
} |
@alisdair Yeah, i was trying to explain what i was doing when i got this error. |
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. |
Terraform Version
Terraform Configuration Files
Debug Output
https://gist.github.com/iamalirezaj/6886a2805f82b09078777e2658fc3805
Crash Output
https://gist.github.com/iamalirezaj/6886a2805f82b09078777e2658fc3805
Expected Behavior
Command succeeded
Actual Behavior
panic: value is marked, so must be unmarked first
Steps to Reproduce
terraform init
terraform apply
Additional Context
Im using a for loop to create an object of multiple servers in an output!
References
The text was updated successfully, but these errors were encountered: