# C3\_W2 Programming Assignment: Assignment 2: Building a Data Lakehouse with AWS Lake Formation and Apache Iceberg- Terraform cant get the variables when run terraform plan/apply

**URL:** <https://community.deeplearning.ai/t/c3-w2-programming-assignment-assignment-2-building-a-data-lakehouse-with-aws-lake-formation-and-apache-iceberg-terraform-cant-get-the-variables-when-run-terraform-plan-apply/763764>\
**Category:** Data Storage and Queries\
**Tags:** week-module-2, coursera-platform\
**Created:** [February 4, 2025, 7:54am UTC](https://community.deeplearning.ai/t/c3-w2-programming-assignment-assignment-2-building-a-data-lakehouse-with-aws-lake-formation-and-apache-iceberg-terraform-cant-get-the-variables-when-run-terraform-plan-apply/763764 "2025-02-04T07:54:01Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![htango](https://avatars.discourse-cdn.com/v4/letter/h/a88e57/32.png) [@htango](https://community.deeplearning.ai/u/htango)\
**Post date:** [February 4, 2025, 7:54am UTC](https://community.deeplearning.ai/t/c3-w2-programming-assignment-assignment-2-building-a-data-lakehouse-with-aws-lake-formation-and-apache-iceberg-terraform-cant-get-the-variables-when-run-terraform-plan-apply/763764/1 "2025-02-04T07:54:01Z")

</div>

Followed the instructions and uncommented the glue.tf lines accordingly, but the terminal run for terraform plan/apply (Step 4.3.3) keeps prompting manual filling in of each var. Skipping them will cause error and have re-executed the setup.sh script but issue happens again still.

Stuck and unable to proceed with the assignment

---

<div class="post-metadata">

**Author:** ![htango](https://avatars.discourse-cdn.com/v4/letter/h/a88e57/32.png) [@htango](https://community.deeplearning.ai/u/htango)\
**Post date:** [February 4, 2025, 7:54am UTC](https://community.deeplearning.ai/t/c3-w2-programming-assignment-assignment-2-building-a-data-lakehouse-with-aws-lake-formation-and-apache-iceberg-terraform-cant-get-the-variables-when-run-terraform-plan-apply/763764/2 "2025-02-04T07:54:58Z")

</div>

![image](https://global.discourse-cdn.com/dlai/original/3X/6/1/613ce461e331d8434d785f22a7eb62701db61a96.png)

---

<div class="post-metadata">

**Author:** ![htango](https://avatars.discourse-cdn.com/v4/letter/h/a88e57/32.png) [@htango](https://community.deeplearning.ai/u/htango)\
**Post date:** [February 4, 2025, 8:40am UTC](https://community.deeplearning.ai/t/c3-w2-programming-assignment-assignment-2-building-a-data-lakehouse-with-aws-lake-formation-and-apache-iceberg-terraform-cant-get-the-variables-when-run-terraform-plan-apply/763764/3 "2025-02-04T08:40:36Z")

</div>

Have tried the steps to restart and delete terraform folder and then re-run and redo everything again but still stuck on the same step with the same terminal crash for many times already

---

<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 4, 2025, 2:27pm UTC](https://community.deeplearning.ai/t/c3-w2-programming-assignment-assignment-2-building-a-data-lakehouse-with-aws-lake-formation-and-apache-iceberg-terraform-cant-get-the-variables-when-run-terraform-plan-apply/763764/4 "2025-02-04T14:27:46Z")

</div>

Hello @htango,

I tried the lab and followed each step I couldn’t reproduce the issue. Since your issue is at the second time you run the terraform commands, I would check for any `None` values in step 4.2.3 in `terraform/modules/transform_etl/glue.tf` file.

In the screenshot you need to rerun `source scripts/setup.sh` after you restart the terminal or terraform plan will ask for inputs. Also, if you uncomment exactly what is necessary in the `outputs.tf` and `main.tf` files.

Finally if there is an issue with your AWS resources you could ask for a [lab refresh](https://docs.google.com/forms/d/e/1FAIpQLSd2EEfKhPusVu_QlVF72tsma-BsWBa8TMgE1uZSmX2efvkYYQ/viewform).

---

<div class="post-metadata">

**Author:** ![Minit\_Chitroda](https://sea1.discourse-cdn.com/dlai/user_avatar/community.deeplearning.ai/minit_chitroda/32/131012_2.png) [@Minit\_Chitroda](https://community.deeplearning.ai/u/Minit_Chitroda)\
**Post date:** [March 29, 2026, 3:48pm UTC](https://community.deeplearning.ai/t/c3-w2-programming-assignment-assignment-2-building-a-data-lakehouse-with-aws-lake-formation-and-apache-iceberg-terraform-cant-get-the-variables-when-run-terraform-plan-apply/763764/5 "2026-03-29T15:48:41Z")

</div>

I’m currently working on the C3 W2 assignment and I’m stuck at section **4.3 Deployment** while running Terraform.

### Issue:

When I run:

```auto
terraform apply

```

Terraform keeps prompting me to manually enter a large number of variables (e.g., `curated_db_name`, `data_lake_name`, `source_host`, etc.).

### What I expected:

Based on the lab instructions and mentor comments, these values should be automatically populated after running:

```auto
source scripts/setup.sh

```

### What I’ve already tried:

- I ran `source scripts/setup.sh` before running Terraform

- I did NOT restart the terminal

- I uncommented only the required sections in:

- I replaced all `None` values in the Terraform files (as required in earlier steps)

### Problem:

Despite doing all of the above, Terraform still asks me to input every variable manually.

### Additional details:

- This happens even without restarting the terminal

- It occurs specifically after enabling the `transform_etl` module

- I was able to run earlier sections without this issue

- Refreshing the lab is not working

### Question:

- Is this expected behavior for this lab?

- Is there something missing in `setup.sh` or environment variable setup?

I’ve been stuck on this for a few days now, so any guidance would be really appreciated.

---

<div class="post-metadata">

**Author:** ![TMosh](https://sea1.discourse-cdn.com/dlai/user_avatar/community.deeplearning.ai/tmosh/32/9321_2.png) [@TMosh](https://community.deeplearning.ai/u/TMosh)\
**Post date:** [March 29, 2026, 4:15pm UTC](https://community.deeplearning.ai/t/c3-w2-programming-assignment-assignment-2-building-a-data-lakehouse-with-aws-lake-formation-and-apache-iceberg-terraform-cant-get-the-variables-when-run-terraform-plan-apply/763764/6 "2026-03-29T16:15:48Z")

</div>

@Minit_Chitroda  
You have replied on a thread that has been cold for over a year.

It would be better if you start a new thread for your question. A current mentor for that course will be more likely to find it.

---

<div class="post-metadata">

**Author:** ![Minit\_Chitroda](https://sea1.discourse-cdn.com/dlai/user_avatar/community.deeplearning.ai/minit_chitroda/32/131012_2.png) [@Minit\_Chitroda](https://community.deeplearning.ai/u/Minit_Chitroda)\
**Post date:** [March 29, 2026, 4:39pm UTC](https://community.deeplearning.ai/t/c3-w2-programming-assignment-assignment-2-building-a-data-lakehouse-with-aws-lake-formation-and-apache-iceberg-terraform-cant-get-the-variables-when-run-terraform-plan-apply/763764/7 "2026-03-29T16:39:11Z")

</div>

how do i do it ?

---

<div class="post-metadata">

**Author:** ![TMosh](https://sea1.discourse-cdn.com/dlai/user_avatar/community.deeplearning.ai/tmosh/32/9321_2.png) [@TMosh](https://community.deeplearning.ai/u/TMosh)\
**Post date:** [March 29, 2026, 4:52pm UTC](https://community.deeplearning.ai/t/c3-w2-programming-assignment-assignment-2-building-a-data-lakehouse-with-aws-lake-formation-and-apache-iceberg-terraform-cant-get-the-variables-when-run-terraform-plan-apply/763764/8 "2026-03-29T16:52:20Z")

</div>

Go to the forum topic for your course. You can start from the “Course Q&A” link in the left-side menu.

In this case, it’s the “Data Engineering” - “Data Storage and Queries” topic.

Then use the “Add Topic” button.
