Deploying App Infrastructure with Deployment Manager

30 minutes
  • 2 Learning Objectives

About this Hands-on Lab

Your team needs you to create and test a webpage on a Compute Engine instance using repeatable code. They would like to use Deployment Manager, since they have heard great things about it. You have been tasked with this objective!

In the end, you will have to spin up an instance with a test webpage, and access the page to confirm it works.

Learning Objectives

Successfully complete this lab by achieving the following learning objectives:

Copy Your Deployment Manager File into Your Directory and Modify the Template
  1. Initialize Cloud Shell Terminal.
  2. Copy the yaml template to your current directory with gsutil -m cp -r gs://acg-gcp-labs-resources/deployment-manager-basic/* .
  3. In Cloud Shell Editor, open the vm-web.yaml file.
  4. On line 5, change the instance name to acloud-html.
  5. On lines 8 and 31, replace YOUR_PROJECT to your actual project ID.
  6. On line 24, change "Welcome to your custom website." to Welcome to Acloud Guru.
  7. On line 25 change "VERSION 1" to Welcome all cloud gurus.
  8. Save the file.
Deploy the Template
  1. In Cloud Shell Terminal, deploy the application with Deployment Manager.
  2. Verify acloud-html instance is available in Compute Engine.
  3. Find the public IP of the instance, click on the IP address, and you will be sent to the HTML page to confirm it’s working.

Additional Resources

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?