- Lab
- A Cloud Guru
Deploying App Infrastructure with Deployment Manager
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.
Path Info
Table of Contents
-
Challenge
Copy Your Deployment Manager File into Your Directory and Modify the Template
- Initialize Cloud Shell Terminal.
- Copy the yaml template to your current directory with
gsutil -m cp -r gs://acg-gcp-labs-resources/deployment-manager-basic/* .
- In Cloud Shell Editor, open the
vm-web.yaml
file. - On line 5, change the instance name to acloud-html.
- On lines 8 and 31, replace
YOUR_PROJECT
to your actual project ID. - On line 15 replace "debian-10" to debian-12.
- On line 24, change "Welcome to your custom website." to Welcome to Acloud Guru.
- On line 25 change "VERSION 1" to Welcome all cloud gurus.
- Save the file.
-
Challenge
Deploy the Template
- In Cloud Shell Terminal, deploy the application with Deployment Manager.
- Verify
acloud-html
instance is available in Compute Engine. - 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.
What's a lab?
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.
Provided environment for hands-on practice
We will provide the credentials and environment necessary for you to practice right within your browser.
Guided walkthrough
Follow along with the author’s guided walkthrough and build something new in your provided environment!
Did you know?
On average, you retain 75% more of your learning if you get time for practice.