☁️ GCP Helper
Use when managing GCP resources like GCE, GCS, or GKE via gcloud CLI.
Overview
Assists in the management of Google Cloud Platform (GCP) resources by providing standardized commands and best practices. This skill helps LLM agents navigate complex cloud environments safely.
When to Use
- Managing GCE instances, GCS buckets, or GKE clusters.
- Checking IAM permissions or configuring service accounts.
- Deploying Cloud Functions or Cloud Run services.
Core Pattern
Always verify the current active project before making any changes to avoid accidental modifications to production environments.
# Verify project
gcloud config get-value project
Quick Reference
| Service | Common Command |
|---|---|
| GCE | gcloud compute instances list |
| GCS | gsutil ls |
| GKE | gcloud container clusters list |
Implementation
- Check active project:
gcloud config get-value project. - List resources for the specific service:
gcloud [service] list. - Perform the desired action with confirmed parameters.
Common Mistakes
- Wrong Project: Working in the wrong project due to lack of verification.
- Not Authenticated: Forgetting to authenticate (
gcloud auth login). - Insufficient Permissions: Executing commands without necessary IAM roles.