Define and Deploy Resources with Google Cloud Deployment Manager

Lab Steps

Signing In to the Google Cloud Console
Authenticating gcloud in the Lab's Virtual Machine
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

Ready for the real environment experience?

Time Limit45m


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


This lab has no prerequisites.


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

Environment before
Environment after
About the Author
Learning paths7

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.