块定义必须包含由“{”和“}”分隔的块内容,与块 header 在同一行开始

A block definition must have block content delimited by "{" and "}", starting on the same line as the block header

*

错误:无效的块定义

  on variable.tf line 1:
   1: variable  "counte"
   2:  {

A block definition must have block content delimited by "{" and "}", starting
on the same line as the block header.

我在输入 terraform init 命令时遇到此错误。我的 variable.tf 在下面添加,有人知道如何解决这个问题,帮帮我

enter image description here

{ 必须与 variable "counte"同一行,例如

variable  "counte" {
   default = 1
}