The value has the wrong type
CommonA word where a number is expected, a string where a list is expected, or a value whose quoting changed it into something else.
Confirm
terraform plan -input=false
Which variable, where the value was set (-var, a file and line, or TF_VAR_), and the type required
Fix
- Pass a value of the declared type: -var replicas=3, or replicas = 3 (no quotes) in a .tfvars file.
- For lists, maps and objects, use Terraform syntax: -var 'tags={team="platform"}' or -var 'zones=["a","b"]'; the same syntax works in TF_VAR_ variables.