Lab : Terraform State

hi

In Lab : Terrafrom state on Q 6 there is a hint for the question asked

"
terraform init command does not create a state file. For a state file to be created, you must run terraform init must be run atleast once."

But the right answer is " terraform apply " was not run.

Does this not sound contradictory ?

In my view the hint should state terraform apply is necessary to be run atleast once for the terraform.tfstate file to be created not the terraform init.

Kindly correct me if I am wrong or missing anything.

Hello, @ppnehe
Nice catch, You’re correct. We have to run terraform apply at least once to create a state file instead of terraform init.
Updated that hint section. :+1: