Updating Existing Deployments

30 minutes
  • 3 Learning Objectives

About this Hands-on Lab

In this hands-on lab, we use Infrastructure as Code configurations along with GCP Deployment Manager to instantiate compute resources on the Google Cloud Platform. You are acting as a contractor for the Virtucon Corporation. The company needs to rapidly spin up a test environment on the Google Cloud Platform for a proof of concept load test. Your role is that of DevOps Engineer. The project files already exist; however, the usual deployment engineer is out sick. Your job is to deploy the resources in a test project and provide the external IP addresses to the load test engineer teams. Post deployment, you will be informed that the startup script for the VM instances needs to be updated due to security concerns. You will need to update the running deployment with an updated startup script and validate the change.

Learning Objectives

Successfully complete this lab by achieving the following learning objectives:

Clone Deployment Manager Configuration Files from GitHub

Download the example files from the ACG GitHub repository using Cloud Shell.

Deploy the Virtucon Test Environment

Use the provided templates to deploy the Virtucon VPC Network, VM instances, and firewall rule.

Update the Existing Virtucon Deployment

To improve security, update the existing virtucon-env deployment by modifying the script on the VM instances.

Additional Resources

Log in to the Google Cloud Platform by right-clicking Open Google Console, and selecting the option to open it in a new private browser window (this option will read differently depending on your browser — e.g., in Chrome, it says "Open Link in Incognito Window"). Then, sign in using the credentials provided on the lab page.

On the Welcome to your new account screen, review the text, and click Accept. In the Welcome Cloud Student! pop-up that appears once you're signed in, check to agree to the terms of service, choose your country of residence, and click Agree and Continue.

Supporting files for this lab can be found in this Git repo:


What are Hands-on Labs

Hands-on Labs are real environments created by industry experts to help you learn. These environments help you gain knowledge and experience, practice without compromising your system, test without risk, destroy without fear, and let you learn from your mistakes. Hands-on Labs: practice your skills before delivering in the real world.

Sign In
Welcome Back!

Psst…this one if you’ve been moved to ACG!

Get Started
Who’s going to be learning?