Problem with installing Terraform version 0.11.11 on Google Cloud Platform in Windows 10 64-bit syst

158 views
Skip to first unread message

micha...@gmail.com

unread,
Dec 31, 2018, 11:14:55 AM12/31/18
to Terraform

Good morning, 
From December 19 this year, I try to install Terraform version 0.11.11 on the Google Cloud Platform using the GCP console on Windows 10 64-bit. Already when entering the terraform command, the "bash: terraform: command not found" message appears in the GCP console. I put screenshots as attachments of the set path in Windows 10 and the location of the terraform.exe file. What am I doing wrong? Please help. I would be very grateful for your help. With other services in GCP, I did not have a problem with the installation.

Sincerely, 
Michał 

Bez tytułu06.jpg
Bez tytułu07.jpg
Bez tytułu08.jpg

micha...@gmail.com

unread,
Jan 6, 2019, 2:38:44 AM1/6/19
to Terraform
There is nobody here who uses Terraform on Windows 10, only on Linux ?

CHUA Chee Wee

unread,
Jan 6, 2019, 10:19:05 AM1/6/19
to Terraform
Windows path is probably not available to your Bash shell, so try specifying the full path name to the Terraform executable.
Also, I'm pretty sure if you run Terraform from a Windows shell, it would work.

Sander van Harmelen

unread,
Jan 7, 2019, 3:20:51 AM1/7/19
to Terraform
Hi Michal,

Could you explain what you mean with "GCP Console on Windows 10"? As I think you are maybe mixing a few technologies and concepts. I Assume (based on screenshot "Bez tytulu08.jpg") that with "GCP Console" you mean the CloudShell, right? If so, I think you should maybe read a bit about CloudShell (https://cloud.google.com/shell/docs/) to understand what it is and how it works. In very short, CloudShell is not connected to any of your own provisioned VMs, but is backed by a preconfigured Debian-based Linux VM. So the settings you showed in the first two screenshots do not apply to the CloudShell environment. 

To get Terraform running in your CloudShell you can follow there steps:

  1. wget https://releases.hashicorp.com/terraform/0.11.11/terraform_0.11.11_linux_amd64.zip
  2. unzip terraform_0.11.11_linux_amd64.zip
  3. sudo mv terraform /usr/bin/
Now you can start using Terraform as usual, but take into account that the VM backing CloudShell is not persistent! Only data in $HOME is persisted over reboots. Also think about this when storing Terraform state files on your local disk. Make sure to save them somewhere in $HOME or use a backend that can save your state remotely. I advise you to read a bit more about CloudShell and about Terraform backends to prevent losing state of infrastructure provisioned by Terraform from your CloudShell.

Best,
Sander

micha...@gmail.com

unread,
Jan 8, 2019, 5:30:23 AM1/8/19
to Terraform
Hello, Sander van Harmelen. That's what Cloud Shell means. I used your Terraform installation tips and using / home / michal19850 / folder / terraform apply displays this (the whole correct path)

Terraform does not automatically rollback in the face of errors.
Instead, your Terraform system has been partially updated with
any resources that successfully completed. Please address the error
above and apply again to incrementally change your infrastructure.
Apparently close, but far away what may be wrong? Therefore, it can not complete the process of creating an exemplary infrastructure.
Sincerely,
Michał

Sander van Harmelen

unread,
Jan 8, 2019, 5:33:55 AM1/8/19
to <terraform-tool@googlegroups.com>
Hi Michal,

Without showing the additional output I cannot tell what went wrong. But it’s clear that Terraform is now available and works, so this is probably related to your Terraform config (the stuff in your xxx.tf files)

Best,
Sander

--
This mailing list is governed under the HashiCorp Community Guidelines - https://www.hashicorp.com/community-guidelines.html. Behavior in violation of those guidelines may result in your removal from this mailing list.
 
GitHub Issues: https://github.com/hashicorp/terraform/issues
IRC: #terraform-tool on Freenode
---
You received this message because you are subscribed to a topic in the Google Groups "Terraform" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/terraform-tool/RhmVOLbqlOw/unsubscribe.
To unsubscribe from this group and all its topics, send an email to terraform-too...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/terraform-tool/c781e7af-f891-428a-a2ce-504e3080b9d6%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

micha...@gmail.com

unread,
Jan 8, 2019, 6:24:35 AM1/8/19
to Terraform

Hello Sander van Harmelen,

In the attachment, I upload a Cloud Shell screen shot with a view of the contents of the .tf file.

Sincerely,

Michał

Bez tytułu010.jpg

Sander van Harmelen

unread,
Jan 8, 2019, 6:33:33 AM1/8/19
to <terraform-tool@googlegroups.com>
Hi Michal,

Without showing the additional output I cannot tell what went wrong. So if you run your terraform command a whole lot of information scrolls over your terminal. It will contain the actual error that happened before it logs the footer to indicate that an error occurred (the text you already pasted earlier starting with "Terraform does not automatically rollback in the face of errors…")

Sander


For more options, visit https://groups.google.com/d/optout.
<Bez tytułu010.jpg>

micha...@gmail.com

unread,
Jan 8, 2019, 6:44:27 AM1/8/19
to Terraform
Hello, Sander van Harmelen,
The most interesting, that at the time where I enter / home / michal19850 / folder / terraform apply it appears so quickly information about some error, that it can not be read, and then information, I have already sent the bark, that is:

Terraform does not automatically rollback in the face of errors.
Instead, your Terraform system has been partially updated with
any resources that successfully completed. Please address the error
above and apply again to incrementally change your infrastructure.

Sincerely,
Michał

Sander van Harmelen

unread,
Jan 8, 2019, 6:49:08 AM1/8/19
to terrafo...@googlegroups.com
Hi Michal,

But without that error it is impossible to tell what the problem is. So you will have to make yourself al little bit more familiar with the terminal so you can scroll up to read the error or save the output to a file instead of your terminal. There is a good change that when you get to read the error yourself, you already understand what the problem is or could be. So that getting and understanding the actual error really needs to be your first step here.

Sander

Robert Patrick

unread,
Jan 9, 2019, 7:09:33 AM1/9/19
to Terraform
I use terraform on my Windows 10 laptop to provision AWS infrastructure all the time so...
Reply all
Reply to author
Forward
0 new messages