Declaring integer type variable in a map

i have a map:

type = object({
    location           = string
    storage_class      = string
    myint              = number
  })
  default = {
    location           = "europe-west4"
    storage_class      = REGIONAL
    myint              = 1
  }

variable “myint” is type number but TF handles it as String.

TF version: v1.3.2
Provider: “hashicorp/azurerm” ~> 3.20.0

Hi @rohit8925,

Can you share some more code that demonstrates that this attribute is being treated as a string instead of a number? I would like to see what you are doing with this value because I suspect that it’s a later operation that is converting it to a string, rather than the conversion happening with the variable directly.