Boot Disk Images Setup on Google Cloud Platform
📖 Scenario: You are setting up virtual machines on Google Cloud Platform (GCP) for a small project. Each VM needs a boot disk image to start the operating system. You will create a list of boot disk images, configure a filter to select specific images, and then prepare the final configuration for VM creation.
🎯 Goal: Build a configuration that lists boot disk images, filters them by family, and prepares the final disk configuration for VM instances.
📋 What You'll Learn
Create a dictionary named
boot_disk_images with exact image families and their project names.Add a variable named
selected_family to filter images by family.Use a dictionary comprehension to create
filtered_images containing only images matching selected_family.Create a final dictionary named
vm_disk_config that includes the filtered images and sets the disk type to pd-standard.💡 Why This Matters
🌍 Real World
Setting up boot disk images is essential when creating virtual machines on cloud platforms like GCP. It ensures the VM boots with the correct operating system.
💼 Career
Cloud engineers and infrastructure specialists often configure boot disks for VMs to automate deployments and maintain consistent environments.
Progress0 / 4 steps