TheSudoYT / terraform-aws-palworld

Terraform module for Palworld Server Infrastructure on AWS
BSD 3-Clause "New" or "Revised" License
9 stars 5 forks source link

Error: Failed to download module #2

Closed Digginz88 closed 5 months ago

Digginz88 commented 5 months ago

What is your Question? I was trying to follow your youtube video and got to the terraform init part, but received an error.

"Failed to download module │ │ on main.tf line 1: │ 1: module "palworld" { │ │ Could not download module "palworld" (main.tf:1) source code from │ "git::https://github.com/TheSudoYT/terraform-aws-palworld?ref=5e3223be6ab41a7b7189acccd6960ee2d8510dba": error downloading │ 'https://github.com/TheSudoYT/terraform-aws-palworld?ref=5e3223be6ab41a7b7189acccd6960ee2d8510dba': git must be available and on the PATH."

Can you let me know what I'm doing wrong? Thanks for the in-depth guide!

image

Josh-Tracy commented 5 months ago

Hi @Digginz88 ,

There are a few reasons this might happen. First, can you expand the .terraform folder and ensure the providers downloaded or not?

image

Additionally, Can you provide some info?

Digginz88 commented 5 months ago

Hi Josh!

The providers are not populated in the module. I must've missed a step?

image

Thanks!

Josh-Tracy commented 5 months ago

Thank you. Do you have git installed on your PC? If not, can you install it, restart the terminal / cmd prompt, and try the terraform init again?

https://git-scm.com/book/en/v2/Getting-Started-Installing-Git

Digginz88 commented 5 months ago

That did it - I was able to go through all the steps once I downloaded that. I really appreciate your help! This was fun to learn and your video made it very easy.

Thank you!

Josh-Tracy commented 5 months ago

Glad to hear it!