Closed Iambatmantheknight closed 1 year ago
module "ec2-instance" {
source = "terraform-aws-modules/ec2-instance/aws"
# ...
}
More info - https://developer.hashicorp.com/terraform/language/modules/sources
module "ec2-instance" { source = "terraform-aws-modules/ec2-instance/aws"
} version = "~>3.0"
Error terraform init
Initializing modules... Downloading registry.terraform.io/terraform-aws-modules/ec2-instance/aws 4.3.0 for ec2-instance... ╷ │ Error: Failed to download module │ │ Could not download module "ec2-instance" (main.tf:7) source code from │ "git::https://github.com/terraform-aws-modules/terraform-aws-ec2-instance?ref=v4.3.0": error downloading │ 'https://github.com/terraform-aws-modules/terraform-aws-ec2-instance?ref=v4.3.0': git must be available and on the │ PATH. ╵
╷ │ Error: Failed to download module │ │ Could not download module "ec2-instance" (main.tf:7) source code from │ "git::https://github.com/terraform-aws-modules/terraform-aws-ec2-instance?ref=v4.3.0": error downloading │ 'https://github.com/terraform-aws-modules/terraform-aws-ec2-instance?ref=v4.3.0': git must be available and on the │ PATH. ╵
PS C:\Temp\create a EC2>
I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.
Description
source = "terraform-aws-modules/ec2-instance/aws"
unable to donwload the GIT file as source does not exist , pls update accordingly
Error: Failed to download module │ │ Could not download module "ec2-instance" (main.tf:7) source code from "git::https://github.com/terraform-aws-modules/terraform-aws-ec2-instance?ref=v3.6.0": error │ downloading 'https://github.com/terraform-aws-modules/terraform-aws-ec2-instance?ref=v3.6.0': git must be available and on the PATH. ╵
╷ │ Error: Failed to download module │ │ Could not download module "ec2-instance" (main.tf:7) source code from "git::https://github.com/terraform-aws-modules/terraform-aws-ec2-instance?ref=v3.6.0": error │ downloading 'https://github.com/terraform-aws-modules/terraform-aws-ec2-instance?ref=v3.6.0': git must be available and on the PATH.