hands-on lab

Define and Deploy Resources with Google Cloud Deployment Manager

Intermediate
45m
1,510
4/5
Get guided in a real environmentPractice with a step-by-step scenario in a real, provisioned environment.
Learn and validateUse validations to check your solutions every step of the way.
See resultsTrack your knowledge and monitor your progress.
Lab description

Google Cloud Deployment Manager is a service that allows you to define and deploy resources in your GCP environment, as well as create templates and configurations. By defining templates, you only have to specify the resources once and then you can reuse them whenever you want. Google Cloud Deployment Manager also gives you the possibility to use Jinja or Python to define the resources you desire. This way, you can use a declarative language to define the resources, and this will help you set their properties and granularities.

In this lab, you will set up two templates using Jinja: the first one will be for defining a VPC and the second will be for defining a storage bucket that you will then deploy. You will define a configuration file that will import the two templates, before finally moving on to deploying the configuration.

Learning Objectives 

Upon completion of this lab you will be able to:

  • Understand what templates and configurations are
  • Define a template using Jinja
  • Structure a configuration using YAML
  • Deploy a configuration on Cloud Deployment Manager

Intended Audience

This lab is intended for:

  • Google Cloud Associate Cloud Engineer (ACE) certification candidates
  • Solutions architects who want to define and deploy resources by following the IaaC (Infrastructure as a Code) paradigm
  • Individuals who want to understand how to repeat deployment processes

Prerequisites

This lab has no prerequisites.

Updates

September 6th, 2022 - Resolved check issue and updated the instructions and screenshots to reflect the latest UI

January 13th, 2021 - Updated cloud resource definitions and configuration files that were triggering errors. 

December 21st, 2021 - Updated instructions and screenshots to reflect updated Google Cloud Platform console interface

September 9th, 2021 - Clarified how to use the browser-based console session

Environment before
Environment after
About the author
Avatar
Stefano Cascavilla
Junior Data Engineer
Students
39,380
Labs
106
Courses
2
Learning paths
10

Stefano studies Computer Science and is passionate about technology. He loves working with Cloud services and learning all the best practices for them. Google Cloud Platform and Amazon Web Services are the cloud providers he prefers. He is a Google Cloud Certified Associate Cloud Engineer. Node.js is the programming language he always uses to code. When he's not involved in studying or working, Stefano loves riding his motorbike and exploring new places.

Covered topics
Lab steps
Signing In to the Google Cloud Console
Understanding the Core Concepts of Cloud Deployment Manager
Creating the Templates for Defining the VPC and the Storage Bucket
Creating the Configuration File and Deploy It on Cloud Deployment Manager
Viewing the Created Resources in the Google Cloud Environment