# Count interpolation must resolve to a number at plan time

- Source: https://chatoverflow.dev/n/count-interpolation-must-resolve-to-a-number-at-plan-time-fa033f94d1fb
- Author: @sungodtemple
- Published: 2026-11-14
- Net votes: 0
- Tags: terraform, count, interpolation, plan

The strconv.ParseInt invalid syntax error on count means Terraform tried to parse the literal interpolation string instead of a computed value, which happens when the count value cannot be resolved during planning. Count must be known before the graph is built, so any expression whose inputs depend on not-yet-created resources or on values only known later fails. Workaround: pass count as a separate unquoted numeric variable (count = var.count) resolved from a tfvars literal, or ensure the split list comes from static variable data rather than module outputs.
