After entering the ‘terraform apply’ command my terminal getting closed with errors and then I ran this command - terraform apply -no-color 2> errors.txt. It also resulting in an error. Please suggest me what to do now?
Hello @Sumedha34,
You need to be at the terraform folder to run terraform commands. After a terminal crash you need to run source scripts/setup.sh
to set terraform variables and the go to terraform folder with cd terraform
and run:
- terraform init
- terraform plan and
terraform apply -no-color 2> errors.txt
instead ofterraform apply
There should be an errors.txt
file created that will show any existing resources. After a few hours a new lab session should reset them. If the issue continues you could fill this form for a lab refresh. Note, that it takes 2 business days (no weekends) to complete. Thank you
I followed the steps given by you. But still the same error. To create the ticket, I don’t have the relevant option to select.
Hello @Sumedha34,
Sorry for the inconvenience, since the issue persists it doesn’t matter which option you choose. When you fill the form you need to select the course/assignment and lab id so a staff @hawraa.salami should be able to refresh your lab. Hope it helps
@Sumedha34 I have two questions:
- Did you make sure to navigate to the terraform folder by typing: “cd terraform” to run the the terraform commands?
- Do you see any file on the left labeled errors.txt?