Arcade Re-Trail: Vaults & Vectors | APIs Explorer: Cloud Storage
Solution for Arcade Re-Trail: Vaults & Vectors | APIs Explorer: Cloud Storage. 1 lab: GSP421. Fast copy-paste commands for Google Cloud.
GSP421 — APIs Explorer: Cloud Storage
Estimated time: 15 minutes
# 🚀 APIs Explorer: Cloud Storage > ⚠️ **Disclaimer:** This is an independent, community-made walkthrough created for educational purposes, hands-on practice, and Google Cloud certification preparation. This guide is designed to help learners understand Cloud Storage operations, API interactions, and practical Google Cloud workflows. Always attempt the lab yourself first and follow Google Cloud Skills Boost / Qwiklabs Terms of Service. This walkthrough is not affiliated with or endorsed by Goog
# ==============================================================================
# ORBIT OF OPS - GSP421 (COMMAND 1 OF 1)
# ==============================================================================
GREEN='\e[1;32m'
CYAN='\e[1;36m'
YELLOW='\e[1;33m'
BLUE='\e[1;34m'
MAGENTA='\e[1;35m'
RED='\e[1;31m'
RESET='\e[0m'
BOLD='\e[1m'
clear
echo -e "${CYAN}${BOLD}"
cat << "EOF"
____ _ _ _ __ ___
/ __ \ | | (_) | / _| / _ \
| | | |_ __| |__ _| |_ ___ | |_ | | | |_ __ ___
| | | | '__| '_ \| | __| / _ \ | _| | | | | '_ \/ __|
| |__| | | | |_) | | |_ | (_) || | | |_| | |_) \__ \
\____/|_| |_.__/|_|\__| \___/ |_| \___/| .__/|___/
| |
|_|
EOF
echo -e "${RESET}"
echo -e "${MAGENTA}${BOLD}>>> ORBIT OF OPS: GSP421 INITIATED <<<${RESET}\n"
export PROJECT_ID=$(gcloud config get-value project 2>/dev/null)
export BUCKET1="${PROJECT_ID}"
export BUCKET2="${PROJECT_ID}-2"
echo -e "${YELLOW}${BOLD}[Orbit of Ops] Step 1: Creating first Cloud Storage bucket...${RESET}"
gcloud storage buckets create gs://$BUCKET1 --quiet
echo -e "${BLUE}${BOLD}[Orbit of Ops] Step 2: Creating second Cloud Storage bucket...${RESET}"
gcloud storage buckets create gs://$BUCKET2 --quiet
echo -e "${CYAN}${BOLD}[Orbit of Ops] Step 3: Generating demo images securely...${RESET}"
wget -q -O demo-image1.png https://www.google.com/images/branding/googlelogo/2x/googlelogo_color_272x92dp.png
wget -q -O demo-image2.png https://www.google.com/images/branding/googlelogo/2x/googlelogo_color_272x92dp.png
echo -e "${MAGENTA}${BOLD}[Orbit of Ops] Step 4: Uploading images to Bucket 1...${RESET}"
gcloud storage cp demo-image1.png gs://$BUCKET1/demo-image1.png --quiet
gcloud storage cp demo-image2.png gs://$BUCKET1/demo-image2.png --quiet
echo -e "${YELLOW}${BOLD}[Orbit of Ops] Step 5: Copying image from Bucket 1 to Bucket 2...${RESET}"
gcloud storage cp gs://$BUCKET1/demo-image1.png gs://$BUCKET2/demo-image1-copy.png --quiet
echo -e "\n${GREEN}${BOLD}🎉 COMMAND 1 COMPLETE!${RESET}"
echo -e "${CYAN}${BOLD}You can now safely click 'Check my progress' on all tasks in your lab manual.${RESET}"