terraform-aws-modules / terraform-aws-ec2-instance

Terraform module to create AWS EC2 instance(s) resources 🇺🇦
https://registry.terraform.io/modules/terraform-aws-modules/ec2-instance/aws
Apache License 2.0
754 stars 1.87k forks source link

source = "terraform-aws-modules/ec2-instance/aws" #314

Closed Iambatmantheknight closed 1 year ago

Iambatmantheknight commented 1 year ago

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.

antonbabenko commented 1 year ago
module "ec2-instance" {
  source = "terraform-aws-modules/ec2-instance/aws"
  # ...
}

More info - https://developer.hashicorp.com/terraform/language/modules/sources

Iambatmantheknight commented 1 year ago

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>

github-actions[bot] commented 1 year ago

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.