Rinshad
Rinshad

Reputation: 13

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

*

Error: Invalid block definition

  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.

i got this error while i'm enter terraform init command. my variable.tf is adding below, anybody know to solve this, help me

enter image description here

Upvotes: 1

Views: 3109

Answers (1)

Marcin
Marcin

Reputation: 238081

{ must be in the same line as variable "counte", for example

variable  "counte" {
   default = 1
}

Upvotes: 1

Related Questions