Argument or block definition required

hello guys,

i am getting this error, while creating new resource in terraform, please help me out, i am new in terarform.

Error: Argument or block definition required

│ on line 37, in resource “aws_vpc” “main”:
│ 37:

│ An argument or block definition is required here.

Following is my actual terrform code

terraform {
required_providers {
aws = {
source = “hashicorp/aws”

configure the aws provider

provider “aws” {
region = “us-east-1”
secret_key = “Jck5zaUcl3cwrSeOwk/4mGZHY6M+w3Y5EgREn67E”

Create a VPC

resource “aws_vpc” “main” {
cidr_block = “”

tags = {
    Name = "main"

Create a Subnet

resource “aws_subnet” “MyLab-SUBNET” {
vpc_id =
cidr_block = “”

tags = {
Name = “MyLab-SUBNET”

Hi @amitsalvi1211,

It’s difficult to read your configuration formatted in this manner, but I would look through the config for a missing closing brace. Judging by the size of the config, line 37 is near the end of the file, and terraform is still trying to parse a block when it reaches the end.