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
758 stars 1.88k forks source link

not able to download module #228

Closed abhishekjalanvns closed 3 years ago

abhishekjalanvns commented 3 years ago

Description

when i try to use the module in terraform config and perform terraform init i m getting below error :

Could not download module "ec2_cluster" (main.tf:2) source code from "git::https://github.com/terraform-aws-modules/terraform-aws-ec2-instance?ref=v2.18.0": error β”‚ downloading 'https://github.com/terraform-aws-modules/terraform-aws-ec2-instance?ref=v2.18.0': git must be available and on the PATH. error

CODE USED :

module "ec2_cluster" { source="terraform-aws-modules/ec2-instance/aws" version="2.18.0" ami="ami-6c1c885c" instance_type="t2.micro" name="AshuVM" subnet_id = "subnet-eddcdzz4" }

code

⚠️ Note

Before you submit an issue, please perform the following first:

  1. Remove the local .terraform directory (! ONLY if state is stored remotely, which hopefully you are following that best practice!): rm -rf .terraform/
  2. Re-initialize the project root to pull down modules: terraform init
  3. Re-attempt your terraform plan or apply and check if the issue still persists

Versions

Reproduction

Steps to reproduce the behavior:

Code Snippet to Reproduce

Expected behavior

Actual behavior

Terminal Output Screenshot(s)

Additional context

argeljoseph commented 3 years ago

Hello, Abishek.. revisit your code espceially the syntax on the source. The documentation on terraform should help. 🌝

github-actions[bot] commented 2 years 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.