Course 3, Week 2 Assignment 2 - Terminal keeps crashing with Terraform Plan

Module # 2:

I started this assignment about 2 weeks ago, but I was unable to finish it in one sit. I then tried continuing with the lab, but have not had any luck since; this is the error I get after doing the following in the terminal:

  1. source scripts/setup.sh
  2. terraform init
  3. terraform plan – suddenly, the terminal crashes.

I’ve tried using the terraform apply -no-color… command, and here is the error that I get:

Error: Reference to undeclared module

on outputs.tf line 16, in output “glue_ratings_to_iceberg_job”:
16: value = module.transform_etl.glue_ratings_to_iceberg_job

No module call named “transform_etl” is declared in the root module.

Error: Reference to undeclared module

on outputs.tf line 20, in output “glue_csv_transform_job”:
20: value = module.transform_etl.glue_csv_transform_job

No module call named “transform_etl” is declared in the root module.

Error: Reference to undeclared module

on outputs.tf line 24, in output “glue_ratings_transform_job”:
24: value = module.transform_etl.glue_ratings_transform_job

No module call named “transform_etl” is declared in the root module.

I can’t get past these errors. Can you please help? Perhaps all that is needed is a lab reset.

Really looking forward to finishing this certificate.

PS. Hawraa Salami has already contacted me once, mentioning that there are no issues with my AWS account. However, I have not received further replies when I mentioned the above in a reply email.

Hello @Julian_ElizoR
The problem is that you have uncommented some lines from the output.tf file in the previous sessions, and these files should be commented in step 3.2.2, where you run terraform commands for the first time. You should either manually change all the files to their original version and start over, or you can request a lab refresh via this form.

1 Like

Thank you very much, Amir! I was now able to finish this lab.