Overview
This course provides an introduction to using Terraform for Google Cloud. It enables learners to describe how Terraform can be used to implement infrastructure as code and to apply some of its key features and functionalities to create and manage Google Cloud infrastructure.
Learners will get hands-on practice building and managing Google Cloud resources using Terraform.
Outline
Course Introduction
Introduction to Terraform for Google Cloud
This is an introductory module that covers the business need for Terraform. We’ll start with the basics by providing an overview of infrastructure as code (IaC), which is the basic concept for Terraform. We will explore how Terraform can be used as an IaC tool on Google Cloud and also cover its features and benefits. We’ll then look at how Terraform transforms lines of code into real infrastructure on Google Cloud.
- Module Overview
- Infrastructure as Code
- Terraform Overview
- Using Terraform
- Quiz : Introducing to Terraform for Google Cloud
- Module Summary
Terms and Concepts
In this module, we introduce you to HashiCorp Language and discuss the terms and concepts involved in authoring a Terraform configuration. We also explore some of the important Terraform commands involved in managing the terraform configuration. Upon completion of this module, you will be able to interpret what each code block means, create basic configuration files within Terraform and be able to explain the purpose of a few few important terraform commands and we will also explore what a Validator tool is.`
- Module Overview
- Terraform Configurations and the HashiCorp Language
- Author Phase Terms and Concepts
- Terraform Commands
- The Terraform Validator
- Demo - Terraform Workflow
- LAB: Infrastructure as Code with Terraform: In this lab, you will explore how terraform can be used to create, manage, and destroy Google Cloud resources.
- Quiz: Terms and Concepts
- Module Summary
Writing Infrastructure Code for Google Cloud
In this module, you will explore more about resources, variables, and output resources. We will begin by exploring how to create infrastructure components using resources and then explore how Terraform handles dependencies within resources. While we have been covering resource creation by using hard-code resource arguments, we will explore how you can parameterize a given configuration using variables. We will explore the syntax to declare, define and use them within your configuration. We will then discuss how you can export resource attributes outside the resource declaration using output values. We will then wrap up the module by discovering how you can simplify code authoring using Terraform registry, and Cloud Foundation Toolkit.
- Module Overview
- Introduction to Resources
- Meta-arguments for Resources
- Resource Dependencies
- Variables
- Variables Best Practices
- Output Values
- Terraform Registry and Cloud Foundation Toolkit
- LAB: Creating Resource Dependencies with Terraform: Explore implicit and explicit resource dependencies and examine the use of lifecycle meta-argument.
- Quiz: Writing Infrastructure Code for Google Cloud
- Module Summary
Organizing and Reusing Configuration with Terraform Modules
You will explore what modules are, how to use them from a public registry, how to use modules to reuse configurations, and parameterize configurations using input variables. You will also explore how to use output values to access resource attributes outside of the module.
- Module Overview
- Introduction to Terraform Modules
- Modules use cases and benefits
- Reuse Configurations with Modules
- Variables and Outputs
- Best Practices and a Real Time Scenario
- LAB: Automating the Deployment of Infrastructure Using Terraform: In this lab, you create a Terraform configuration with a module to automate the deployment of GCP infrastructure.
- Quiz: Organizing and Reusing Configuration with Terraform Modules
- Module Summary
Introduction to Terraform State
The module starts with an introduction to Terraform state. You’ll then learn about the different ways to store Terraform state. Later in the module you’ll explore the benefits of storing the state file in a remote location. While there are many remote locations in which you can store the state file, this module describes how to store it in a Google Cloud Storage Bucket. You’ll wrap up the module by learning best practices for working with state files.
- Module Overview
- Introduction to Terraform State
- Storing State Files
- Terraform State Best Practices
- LAB: Creating a Remote Backend: In this lab, you will learn how to create a local and remote backend.
- Quiz: Introduction to Terraform State
- Module Summary
Frequently asked questions
How can I create an account on myQA.com?
There are a number of ways to create an account. If you are a self-funder, simply select the "Create account" option on the login page.
If you have been booked onto a course by your company, you will receive a confirmation email. From this email, select "Sign into myQA" and you will be taken to the "Create account" page. Complete all of the details and select "Create account".
If you have the booking number you can also go here and select the "I have a booking number" option. Enter the booking reference and your surname. If the details match, you will be taken to the "Create account" page from where you can enter your details and confirm your account.
Find more answers to frequently asked questions in our FAQs: Bookings & Cancellations page.
How do QA’s virtual classroom courses work?
Our virtual classroom courses allow you to access award-winning classroom training, without leaving your home or office. Our learning professionals are specially trained on how to interact with remote attendees and our remote labs ensure all participants can take part in hands-on exercises wherever they are.
We use the WebEx video conferencing platform by Cisco. Before you book, check that you meet the WebEx system requirements and run a test meeting (more details in the link below) to ensure the software is compatible with your firewall settings. If it doesn’t work, try adjusting your settings or contact your IT department about permitting the website.
How do QA’s online courses work?
QA online courses, also commonly known as distance learning courses or elearning courses, take the form of interactive software designed for individual learning, but you will also have access to full support from our subject-matter experts for the duration of your course. When you book a QA online learning course you will receive immediate access to it through our e-learning platform and you can start to learn straight away, from any compatible device. Access to the online learning platform is valid for one year from the booking date.
All courses are built around case studies and presented in an engaging format, which includes storytelling elements, video, audio and humour. Every case study is supported by sample documents and a collection of Knowledge Nuggets that provide more in-depth detail on the wider processes.
When will I receive my joining instructions?
Joining instructions for QA courses are sent two weeks prior to the course start date, or immediately if the booking is confirmed within this timeframe. For course bookings made via QA but delivered by a third-party supplier, joining instructions are sent to attendees prior to the training course, but timescales vary depending on each supplier’s terms. Read more FAQs.
When will I receive my certificate?
Certificates of Achievement are issued at the end the course, either as a hard copy or via email. Read more here.