Terraform in Ubuntu

I have utilized the following steps to install terraform in Ubuntu 16.04

Download Terraform for Linux 64 bit version.

Save the downloaded version in a specific folder. (Example: /home/user/terra)

Within the folder where the downloaded version is saved, use “unzip” command:

unzip terraform

Set the path:

export PATH=$PATH:/home/user/terraform

Reference Link.

GCloud Init Error

$ gcloud init
WARNING: Could not setup log file in /home/johndoe/.config/gcloud/logs, (IOError: [Errno 13] Permission denied: ‘/home/johndoe/.config/gcloud/logs/2016.10.07/13.02.53.410759.log’)

Welcome! This command will take you through the configuration of gcloud.

ERROR: (gcloud.init) Failed to create the default configuration. Ensure your have the correct permissions on: [/home/johndoe/.config/gcloud/configurations]. Could not create directory [/home/johndoe/.config/gcloud/configurations]: Permission denied.

Please verify that you have permissions to write to the parent directory.

The following change helped resolve the error:

sudo chown johndoe -R /home/johndoe/.config/gcloud

Replace “johndoe” with the relevant username under which you are accessing the folder gcloud.