hands-on lab

Define and Deploy Resources with Google Cloud Deployment Manager

Difficulty: Intermediate
Duration: Up to 45 minutes
Students: 1,521
Rating: 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.

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

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