# How to undo everything and restart lab for Programming Assignment: Assignment 2: Building a Data Lakehouse with AWS Lake Formation and Apache Iceberg?

**URL:** <https://community.deeplearning.ai/t/how-to-undo-everything-and-restart-lab-for-programming-assignment-assignment-2-building-a-data-lakehouse-with-aws-lake-formation-and-apache-iceberg/769217>\
**Category:** Data Storage and Queries\
**Tags:** week-module-2, coursera-platform\
**Created:** [February 13, 2025, 8:52am UTC](https://community.deeplearning.ai/t/how-to-undo-everything-and-restart-lab-for-programming-assignment-assignment-2-building-a-data-lakehouse-with-aws-lake-formation-and-apache-iceberg/769217 "2025-02-13T08:52:34Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Edmund\_Koh](https://avatars.discourse-cdn.com/v4/letter/e/8491ac/32.png) [@Edmund\_Koh](https://community.deeplearning.ai/u/Edmund_Koh)\
**Post date:** [February 13, 2025, 8:52am UTC](https://community.deeplearning.ai/t/how-to-undo-everything-and-restart-lab-for-programming-assignment-assignment-2-building-a-data-lakehouse-with-aws-lake-formation-and-apache-iceberg/769217/1 "2025-02-13T08:52:34Z")

</div>

Encountering errors on Programming Assignment: Assignment 2: Building a Data Lakehouse with AWS Lake Formation and Apache Iceberg?

Was prompted the following at part 3.2 of the assigment during the terraform plan phase. Not sure if this is expected or system error? If so, can I know how do i undo everything and restart lab? Thank you

 ![Screenshot 2025-02-12 at 11.26.49 PM](https://global.discourse-cdn.com/dlai/original/3X/f/7/f730dc7a59f9d7632c5cb2d70dfe0c5fb53c4e2f.png)

---

<div class="post-metadata">

**Author:** ![Georgios](https://avatars.discourse-cdn.com/v4/letter/g/eb9ed0/32.png) [@Georgios](https://community.deeplearning.ai/u/Georgios)\
**Post date:** [February 13, 2025, 3:36pm UTC](https://community.deeplearning.ai/t/how-to-undo-everything-and-restart-lab-for-programming-assignment-assignment-2-building-a-data-lakehouse-with-aws-lake-formation-and-apache-iceberg/769217/2 "2025-02-13T15:36:00Z")

</div>

Hello @Edmund_Koh

If you want to start fresh you could delete the lab files you changed before and use `get_latest_version` from help to recreate them.  
The `screen is terminating` means that the terminal crashed and you need to run `source scripts/setup.sh` to set the variables again.  
However the terminal crash will happend every time if you only uncomment 1-17 lines in `main.tf` and different blocks in `outputs.tf`.  
Solution is to comment again the Module Transformation in `outputs.tf` (lines 15-25) to continue. Hope it helps

 ![C3W2_terraform_plan_uncomment_outputs](https://global.discourse-cdn.com/dlai/original/3X/5/0/50c48f463add82d890c6d085a97287e0ebfbccf1.jpeg)

---

<div class="post-metadata">

**Author:** ![Edmund\_Koh](https://avatars.discourse-cdn.com/v4/letter/e/8491ac/32.png) [@Edmund\_Koh](https://community.deeplearning.ai/u/Edmund_Koh)\
**Post date:** [February 14, 2025, 4:37am UTC](https://community.deeplearning.ai/t/how-to-undo-everything-and-restart-lab-for-programming-assignment-assignment-2-building-a-data-lakehouse-with-aws-lake-formation-and-apache-iceberg/769217/3 "2025-02-14T04:37:42Z")

</div>

> [@Georgios](#):
>
> However the terminal crash will happend every time if you only uncomment 1-17 lines in `main.tf` and different blocks in `outputs.tf`.  
> Solution is to comment again the Module Transformation in `outputs.tf` (lines 15-25) to continue.

Hi @Georgios , tried your method to comment again the Module Transformation in `outputs.tf` (lines 15-25) to continue but its not working. Seems like terraform plan still throws the same error to declare value for var.curated\_db\_ml\_table.

---

<div class="post-metadata">

**Author:** ![Georgios](https://avatars.discourse-cdn.com/v4/letter/g/eb9ed0/32.png) [@Georgios](https://community.deeplearning.ai/u/Georgios)\
**Post date:** [February 14, 2025, 1:52pm UTC](https://community.deeplearning.ai/t/how-to-undo-everything-and-restart-lab-for-programming-assignment-assignment-2-building-a-data-lakehouse-with-aws-lake-formation-and-apache-iceberg/769217/4 "2025-02-14T13:52:21Z")

</div>

Hello @Edmund_Koh,

The strange thing is that I can reproduce your issue. Here are two things I can tell from your screenshot.  
1)The terminal crash on `terraform plan` because of different uncomment lines or `terraform apply` because of existing AWS resources.  
2)You didn’t rerun `source scripts/setup.sh` after the terminal crash and you will get this error:

 ![C3W2_terraform_plan_no_source](https://global.discourse-cdn.com/dlai/original/3X/0/1/017385df81c12847d2c9129cc3fccf7868dffb2b.jpeg)

This is the output I reproduced from `terraform plan` since there are no inputs set from `source scripts/setup.sh` :

 ![C3W2_terraform_plan_no_source_output](https://global.discourse-cdn.com/dlai/original/3X/2/9/292817df9afa7a75a7c506ce814b0871c9f17adb.jpeg)

The solution to this is to go back to terminal/project (use cd …) and use `source scripts/setup.sh` the run the terraform commands again:

 ![C3W2_terraform_plan_correct](https://global.discourse-cdn.com/dlai/original/3X/6/7/67ad863e8df2560349ba0b44b7e8b34821276370.jpeg)  
 ![C3W2_terraform_plan_correct_output](https://global.discourse-cdn.com/dlai/original/3X/9/0/90e6dc8c4d200817d5d348f9edeaf57e66664276.jpeg)

3)Undo everything means delete your lab files and use `get_latest_version.`:  
This can be used to update to a new version or to start over. This will not replace any of your files (only missing/renamed files):

 ![lab_help_get_latest_version](https://global.discourse-cdn.com/dlai/original/3X/4/c/4c585d708237e295d33e9aeed7077e0dd086dbab.jpeg)

4)If your lab is still not healthy you can use the [lab refresh form](https://docs.google.com/forms/d/e/1FAIpQLSd2EEfKhPusVu_QlVF72tsma-BsWBa8TMgE1uZSmX2efvkYYQ/viewform). Hope it helps
