0
0
GCPcloud~30 mins

Deployment Manager as native IaC in GCP - Mini Project: Build & Apply

Choose your learning style9 modes available
Deployment Manager as native IaC
📖 Scenario: You are working as a cloud engineer for a company that wants to automate the creation of a simple Google Cloud Storage bucket using Deployment Manager. This will help the team avoid manual steps and keep infrastructure consistent.
🎯 Goal: Build a Deployment Manager configuration that defines a Google Cloud Storage bucket as infrastructure as code (IaC). You will create the initial configuration data, add a property for the bucket name, define the resource, and complete the configuration for deployment.
📋 What You'll Learn
Create a dictionary called resources to hold the deployment resources.
Add a variable called bucket_name with the exact value my-sample-bucket-123.
Define a resource dictionary for a storage bucket using the type storage.v1.bucket and the name my-bucket.
Complete the configuration by adding the name and properties keys correctly inside the resource.
💡 Why This Matters
🌍 Real World
Automating cloud infrastructure creation helps teams deploy resources quickly and consistently without manual errors.
💼 Career
Cloud engineers and DevOps professionals use Deployment Manager or similar IaC tools daily to manage cloud resources efficiently.
Progress0 / 4 steps
1
Create the initial resources dictionary
Create a variable called resources and set it to an empty list to hold deployment resources.
GCP
Need a hint?

Think of resources as a list where you will add your cloud components.

2
Add the bucket name variable
Add a variable called bucket_name and set it to the string "my-sample-bucket-123".
GCP
Need a hint?

This variable will hold the exact name of the storage bucket.

3
Define the storage bucket resource
Add a dictionary to the resources list with keys: name set to "my-bucket", type set to "storage.v1.bucket", and properties as an empty dictionary.
GCP
Need a hint?

This dictionary describes the bucket resource for Deployment Manager.

4
Complete the bucket properties with the bucket name
Inside the properties dictionary of the first resource in resources, add the key name with the value from the variable bucket_name.
GCP
Need a hint?

This sets the actual bucket name in the deployment configuration.