C7 - Part I - Prerequisites
Setup Terraform Client
In this task you will install Terraform on your local machine.
The installation procedure depends on the OS on your local machine. If you run Windows it is recommended you use a Linux installation to run Terraform (Windows Subsystem for Linux with Debian/Ubuntu is fine).
To install on Linux: Use Debian/Ubuntu's package manager apt:
On Linux
Install the required packages to add Terraform APT repository
[Request]
sudo apt-get update && sudo apt-get install -y gnupg software-properties-common curl
[Request]
sudo apt-get update
[Response]
Get:1 http://security.debian.org/debian-security bullseye-security InRelease [44.1 kB]
Get:2 http://cdn-aws.deb.debian.org/debian bullseye
[...]
Reading package lists... Done
[Request]
sudo apt-get install -y gnupg software-properties-common curl
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
curl is already the newest version (7.74.0-1.3+deb11u1).
The following additional packages will be installed:
dirmngr gir1.2-glib-2.0 gir1.2-packagekitglib-1.0[ gnupg-l10n gnupg-utils gpg gpg-agent gpg-wks-client
gpg-wks-server gpgconf gpgsm libappstream4 libassuan0 libdw1 libgirepository-1.0-1 libglib2.0-bin
libglib2.0-data libgstreamer1.0-0 libksba8 libnpth0
[...]
[Response]
Processing triggers for libc-bin (2.31-13+deb11u3) ...
Processing triggers for man-db (2.9.4-2) ...
Processing triggers for dbus (1.12.20-2) ...
Add the HashiCorp GPG key.
[Request]
curl -fsSL https://apt.releases.hashicorp.com/gpg | sudo apt-key add -
[Response]
Warning: apt-key is deprecated. Manage keyring files in trusted.gpg.d instead
Add the official HashiCorp Linux repository.
[Request]
sudo apt-add-repository "deb [arch=amd64] https://apt.releases.hashicorp.com" $(lsb_release -cs ) main
[Response]
-none-
Update to add the repository, and install the Terraform CLI.
[Request]
sudo apt-get update && sudo apt-get install terraform
[Response]
Hit:1 http://security.debian.org/debian-security bullseye-security InRelease
[...]
Setting up terraform (1.1.9) ...
On macOS: Use the Homebrew package manager brew:
Install the HashiCorp tap
brew tap hashicorp/tap
Install Terraform
brew install hashicorp/tap/terraform
Verify that Terraform is installed correctly by running:
[Request]
terraform --version
[Response]
Terraform v1.1.9
on linux_amd64
Your version of Terraform is out of date! The latest version
is 1.2.0. You can update by downloading from https://www.terraform.io/downloads.html
Open and set google project
Introduction
In this task, you will create and set a google project (as well as for the previous challenge with Google App Engine).
Create Google project
[Request]
gcloud projects create cldlgrp99_labgce
[Response]
Create in progress for [https://cloudresourcemanager.googleapis.com/v1/projects/cldlgrp99_labgce].
Waiting for [operations/cp.7874600527401530437] to finish...done.
Enabling service [cloudapis.googleapis.com] on project [cldgrp99_labgce]...
Operation "operations/acat.p2-755723429290-6ab67b23-a4ec-4d42-b173-a4b15ea9ff03" finished successfully.
Last updated