Closed abhishekjalanvns closed 3 years ago
Hello, Abishek.. revisit your code espceially the syntax on the source. The documentation on terraform should help. π
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
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.
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" }
β οΈ Note
Before you submit an issue, please perform the following first:
.terraform
directory (! ONLY if state is stored remotely, which hopefully you are following that best practice!):rm -rf .terraform/
terraform init
Versions
Reproduction
Steps to reproduce the behavior:
Code Snippet to Reproduce
Expected behavior
Actual behavior
Terminal Output Screenshot(s)
Additional context