terraform is not recognized as an internal or external command operable program or batch file

0 votes

Hi Guys,

I have installed terraform software in my Windows system. But when I tried to use any command. It is showing me the below error.

$ terraform -version
'terraform' is not recognized as an internal or external command,
operable program or batch file.

How can I solve this error?

Jun 10, 2020 in Terraform by akhtar
• 38,260 points
29,724 views

1 answer to this question.

+1 vote

Hi@akhtar,

You have to set an environment variable for terraform in your Windows system. Go to your environment settings and set a path for terraform. It will work.

answered Jun 10, 2020 by MD
• 95,460 points
I'm facing the same issue even after set a path variable (env variable) in windows. Any idea what could be wrong ?
hello, i have set my environment variable and yet it is not working
I did the same but still issue persists
terrafrom : The term 'terrafrom' is not recognized as the name of a cmdlet, function, script file, or operable
program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again.
At line:1 char:1
+ terrafrom --help
+ ~~~~~~~~~
    + CategoryInfo          : ObjectNotFound: (terrafrom:String) [], CommandNotFoundException
    + FullyQualifiedErrorId : CommandNotFoundException
Still getting same error message after done the entry in environment variables
0 votes
$env:Path += ";C:\temp\terraform"

You have to set Environment variable run given command on PowerShell window by replacing path
answered Feb 13, 2023 by Rajasekhar Reddy

edited Mar 5

Related Questions In Terraform

0 votes
1 answer

An argument named "versioning" is not expected here. Did you mean to define a block of type "versioning"?

Hi@akhtar, The error is telling that you need ...READ MORE

answered Dec 1, 2020 in Terraform by MD
• 95,460 points
3,101 views
0 votes
1 answer

How to attach an EBS volume to EC2 instance using terraform?

Hi@akhtar, You can use aws_volume_attachment resource to attach ...READ MORE

answered Jun 12, 2020 in Terraform by MD
• 95,460 points
9,054 views
0 votes
1 answer

How to create one key in AWS using terraform?

Hi@akhtar, You can use aws_key_pair resource n terraform. ...READ MORE

answered Jun 11, 2020 in Terraform by MD
• 95,460 points
1,639 views
0 votes
1 answer

How to connect OpenStack Cloud with Terraform?

Hi@akhtar, To connect any Cloud, Terraform has a ...READ MORE

answered Jul 5, 2020 in OpenStack by MD
• 95,460 points
1,238 views
0 votes
1 answer

How to import module in Terraform code?

Hi@akhtar, A module is a container for multiple resources that ...READ MORE

answered Jul 21, 2020 in Terraform by MD
• 95,460 points
2,212 views
0 votes
1 answer

How to read input from CSV file or any file instead of using tfvars file in Terraform?

Hi, You can use the file function in Terraform. ...READ MORE

answered Jul 27, 2020 in Terraform by MD
• 95,460 points
6,081 views
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP