You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The output shows the current date at plan time (2024-10-24.T11:58:00Z).
Actual Behavior
The output being shown is "0001-01-01T00:00:00Z".
It causes the range function to fail with the following error:
Error: Error in function call
│
│ on ../../../../component/trip-shared/terraform/constants/outputs.tf line 19, in output "trip_iceberg_table_years":
│ 19: for year in range(local.first_year, tonumber(formatdate("YYYY", local.current_timestamp)) + 2) : tostring(year)
│ ├────────────────
│ │ while calling range(params...)
│ │ local.current_timestamp is "0001-01-01T00:00:00Z"
│ │ local.first_year is 2023
Steps to Reproduce
terraform plan
cannot directly reproduce in terraform console as planterraform does not exists there, but its output can be visualized with it.
(terraform console -> local.current_timestamp)
Additional Context
No response
References
No response
The text was updated successfully, but these errors were encountered:
This is a validation error, which happens before the plan. The timestamp should be unknown at that point, however the implementation is using time.Time directly so cannot take the unknown value into account.
jbardin
added
confirmed
a Terraform Core team member has reproduced this issue
and removed
new
new issue not yet triaged
labels
Oct 24, 2024
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
Can't find related debug traces
Expected Behavior
The output shows the current date at plan time (2024-10-24.T11:58:00Z).
Actual Behavior
The output being shown is "0001-01-01T00:00:00Z".
It causes the range function to fail with the following error:
Steps to Reproduce
terraform plan
cannot directly reproduce in terraform console as planterraform does not exists there, but its output can be visualized with it.
(terraform console -> local.current_timestamp)
Additional Context
No response
References
No response
The text was updated successfully, but these errors were encountered: