C4W4- capstone project 1- Terraform apply prompting for variable input

Hi everyone,
I’m working on Course 4, Week 4 – Capstone Project 1 and I’m facing an issue with terraform apply.

According to the exercise, Terraform should run without asking for any variable inputs (except the final confirmation). However, during terraform apply, I’m being prompted for:

var.catalog_database
Curated DB name
Enter a value:

Terraform is otherwise initialized successfully. I believe this variable should already be defined as part of the lab setup, but in my environment it seems to be missing, causing Terraform to ask for input interactively.

Has anyone else faced this issue?
Could you please confirm:

  • what the expected value for catalog_database is, and

  • where it is supposed to be defined?
    Thanks in advance for the help!

Juhi

Re-start the lab and run the “setup.sh” script again

Delete all the files in the lab and click on update lab to get fresh new files to start over because you shouldn’t get this var.catalog_database ,Curated DB name when you use the command terraform apply. Only input needed after using terraform apply is ‘yes’.

Getting the below means that you are making some mistake in your previous steps of the lab

var.catalog_database
Curated DB name
Enter a value:

I have restarted the lab again. its going well for extraction job, but for transformation job, whenever I ‘m trying to execute terraform plan and apply, its showing me above error and asking for curated DB name. Don’t know what to do.