0
0
GCPcloud~30 mins

Project configuration in GCP - Mini Project: Build & Apply

Choose your learning style9 modes available
GCP Project Configuration Basics
📖 Scenario: You are setting up a new Google Cloud Platform (GCP) project for a small business. This project will host their website and store data securely.
🎯 Goal: Learn how to configure a GCP project by creating a project dictionary, setting a billing account, enabling APIs, and adding labels for organization.
📋 What You'll Learn
Create a dictionary named gcp_project with specific project details
Add a billing account ID as a configuration variable
Enable a list of APIs using a loop
Add labels to the project dictionary for better organization
💡 Why This Matters
🌍 Real World
Setting up and configuring cloud projects is a common task when starting new applications or services in GCP.
💼 Career
Cloud engineers and administrators often configure projects, billing, and APIs to prepare environments for development and production.
Progress0 / 4 steps
1
Create the initial GCP project dictionary
Create a dictionary called gcp_project with these exact entries: 'project_id': 'my-sample-project', 'name': 'Sample Project', and 'region': 'us-central1'.
GCP
Need a hint?

Use curly braces to create a dictionary and include the keys and values exactly as shown.

2
Add the billing account ID configuration
Add a variable called billing_account_id and set it to the string '0123-4567-89AB'.
GCP
Need a hint?

Assign the billing account ID as a string to the variable named exactly billing_account_id.

3
Enable required APIs for the project
Create a list called apis_to_enable with these exact strings: 'compute.googleapis.com', 'storage.googleapis.com', and 'cloudfunctions.googleapis.com'. Then use a for loop with the variable api to iterate over apis_to_enable.
GCP
Need a hint?

Create the list with the exact API names and write a for loop using api as the loop variable.

4
Add labels to the GCP project dictionary
Add a key 'labels' to the gcp_project dictionary. Set it to another dictionary with these exact entries: 'env': 'development' and 'team': 'devops'.
GCP
Need a hint?

Add the labels key with a nested dictionary inside the existing gcp_project dictionary.