Lost the terraform files

when i was trying to apply the terraform code, it asked me to assign variables, i even uncommented the code and tried to run it, i tried editing the code and it did not work, so now i have lost the original terraform code (main and output). please help me to get it back
thanks!

Can you provide a screenshot? A common error is to not run the code inside the terraform folder.

For example:

cd terraform
terraform init

Hi! thank you for your reply, i managed to do that, i managed to do the first part of the assignment (Batch) before the embdedding part, there when i tried running the terraform apply, it asked me to assign variables, like asked whats the location of the bucket… etc, i did in fact uncommented the code but it still did not work for me

Hi @Shadyar_Radha so, did you mange to solve the issue or are you still having troubles?

I still have not solved the problem, because i do not have the original terraform code

@Shadyar_Radha You can obtain the original files by:

a. Delete the current ones

b. Obtain the original ones (Refer to the image at the end)

c. Reboot the lab (This will generate a fresh start)

Remember, you will need to start from scratch. So, save/backup any progress