C3_W2_Assignment programming assignment problems

I’m having frustrating issues trying to complete the programming assignment that have to do with my terminal crashing during terraform apply commands, and none of the remedies I’ve seen in the discussions seem to work. My terminal seems to disconnect and not reconnect (despite struggling to do so) by the time I get to section 4.3 when trying to execute the terraform commands. When I restart the lab (rebooting, or getting the latest files) there is no help and I run into the same issues but at the starting sections of the lab when running the first terraform commands. This seems like a frustrating ‘back end’ infrastructure problem and I’d like to resolve it ASAP so that I can move forward with completing the course that I’ve paid for. Your quick help in this matter is appreciated.

Hello @PST
If the terminal crashes after running terraform commands, you can use terraform apply -no-color 2> errors.txt to log the errors into a text file and see what’s going wrong. Have you done so? What’s been causing the crash?

Hi thank you for your response. My errors.txt file contains the following:


Error: No configuration files

Apply requires configuration to be present. Applying without a configuration
would mark everything for destruction, which is normally not what is desired.
If you would like to destroy everything, run ‘terraform destroy’ instead.

I thought that it may have been due to not running the setup script, but I’ve confirmed that I’ve run that and it doesn’t seem to remedy the issue.

Hi,

I’ve just redone the lab from scratch again, and I’ve avoided the crashes (for some reason).
Thanks

Happy to here that you were able to tackle the problems. By the way, the error is saying that terraform was not able to find the configuration files. My guess is that you were running terraform apply outside of the terraform folder.

I have also been having the similar problem and feels that I messed up with terrraform files . Can it possible that I have the whole lab fresh again . As I noticed that I everytime I open a new session I am having the lab files from last time. Though I got new aws session lab.
Any help will be greatly appreciated.

@aamirmajeedkhan please, fill out this form.