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
locals {
sg_lb_chat_service_api_ips = [
"10.5.1.72",
"10.5.2.21",
"10.5.0.16"
]
cidr_blocks = true ? [ for ip in local.sg_lb_chat_service_api_ips : "${ip}/32" ] : null # <---- Does not work.
}
output "hoge" {
value = local.cidr_blocks # <---- Does not show anything
}
Debug Output
Crash Output
Expected Behavior
Condition can be used in locals block.
Actual Behavior
When condition is specified in loccals block, no error and does not work.
Steps to Reproduce
Additional Context
References
The text was updated successfully, but these errors were encountered:
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
locked and limited conversation to collaborators
Aug 13, 2019
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Terraform Version
Terraform Configuration Files
Debug Output
Crash Output
Expected Behavior
Condition can be used in locals block.
Actual Behavior
When condition is specified in loccals block, no error and does not work.
Steps to Reproduce
Additional Context
References
The text was updated successfully, but these errors were encountered: