C
Coder.com9mo ago
farah

Error: No configuration files

I am new to terraform and coder. I am trying to use this template: https://github.com/coder/coder/tree/main/examples/templates/gcp-windows. I copied the folder and added the line default="projectId" And I got the following error:
Terraform initialized in an empty directory!
The directory has no Terraform configuration files. You may begin working
with Terraform immediately by creating Terraform configuration files.
Terraform 1.5.7
Error: No configuration files
Plan requires configuration to be present. Planning without a configuration would mark everything for destruction, which is normally not what is desired. If you would like to destroy everything, run plan with the -destroy option. Otherwise, create a Terraform configuration file (.tf file) and try again.
Terraform initialized in an empty directory!
The directory has no Terraform configuration files. You may begin working
with Terraform immediately by creating Terraform configuration files.
Terraform 1.5.7
Error: No configuration files
Plan requires configuration to be present. Planning without a configuration would mark everything for destruction, which is normally not what is desired. If you would like to destroy everything, run plan with the -destroy option. Otherwise, create a Terraform configuration file (.tf file) and try again.
Is there any sample template that works out of the box?
3 Replies
Codercord
Codercord9mo ago
<#1217678057100410972>
Category
Help needed
Product
Coder OSS (v2)
Platform
Linux
Logs
Please post any relevant logs/error messages.
farah
farahOP9mo ago
*meaning has all the code along with variables and I can replace the variables with my own to link them to the cloud provider I am using.
Atif
Atif9mo ago
are you sure there is a main.tffile in the directory where you are running coder template push?
Want results from more Discord servers?
Add your server