Working on Coursera , Data Storage and queries, week 2, assignment 2, trying to run terraform init, terraform plan || echo ”$?”, command asks for input for var.currated_db_name, or var.data_lake_name, …etc. The variables are not being used from the terraform/variables.tf file. The variables are all there but have no default values. The landing_etl will not work, nor the transform_etl. The varibles in the main.tf file.
Hi @vincentanggaines
Run the following command in the terminal to set up the environment, this should be before running the terraform commands.
source scripts/setup.sh
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:
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:
source scripts/setup.sh
What I’ve already tried:
-
I ran
source scripts/setup.shbefore running Terraform -
I did NOT restart the terminal
-
I uncommented only the required sections in:
-
terraform/main.tf -
terraform/outputs.tf
-
-
I replaced all
Nonevalues 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_etlmodule -
I was able to run earlier sections without this issue
-
Restarting the Lab is not helping
Question:
-
Is this expected behavior for this lab?
-
Is there something missing in
setup.shor environment variable setup?
I’ve been stuck on this for a few days now, so any guidance would be really appreciated.
Hi
I believe it takes a couple of hours of inactivity for your session to time-out and all the assets to be released.