☁️ Google Cloud Basics (Billing, Project Setup) हिंदी में
Google Cloud Platform (GCP) आज की सबसे popular cloud services में से एक है। इसमें आप Virtual Machines (Compute Engine), Storage, Databases, AI/ML models और कई cloud-native tools use कर सकते हैं। GCP का पहला step होता है Billing account setup और Project creation, क्योंकि हर resource project के अंदर manage होता है और billing उसी project से जुड़ा होता है।
🔹 GCP Project क्या है?
Google Cloud में हर service एक Project के अंदर चलती है। एक Project को आप एक logical container मान सकते हैं, जहाँ आपके:
- Compute (VMs, Kubernetes clusters)
- Storage (Buckets, Databases)
- APIs & Services (AI, BigQuery, Vision API)
- IAM Permissions (Users, Roles)
- Billing settings
हर Project का एक unique Project ID और Project Number होता है।
🔹 Billing Account Setup
Billing account आपके credit card या debit card से जुड़ा होता है और उसी से आपके GCP resources की cost deduct होती है। Free tier users को $300 credit मिलता है जिसे 90 दिनों तक use किया जा सकता है।
- GCP Console में जाएँ →
console.cloud.google.com
- Navigation menu → Billing चुनें
- Create Account पर click करें
- Payment method add करें (Credit/Debit card, UPI कुछ देशों में)
- Account को एक Project से link करें
🔹 Project Setup Step-by-Step
- Console में Select a Project dropdown पर click करें।
- New Project पर click करें।
- Project Name, Organization (अगर है) और Location choose करें।
- Project ID note करें (यह unique होता है और बाद में APIs call में काम आता है)।
- Create पर click करें।
⚡ Example: Project ID vs Project Number
Aspect | Project ID | Project Number |
---|---|---|
Format | Customizable (my-ml-project) | Auto-generated (e.g., 1234567890) |
Use Case | API calls, scripts | Internal billing & tracking |
🔹 Resource Organization
GCP में resources इस hierarchy में manage होते हैं:
- Organization → Company level
- Folder → Department/Team level
- Project → Application/Environment level
- Resources → Compute, Storage, APIs
🛡️ Best Practices for Billing & Project Management
- Budget Alerts: Billing → Budgets & Alerts setup करें ताकि overspending न हो।
- Labels & Tags: Projects और resources पर labels लगाएँ (जैसे env=dev, team=ml)।
- IAM Roles: हर Project में केवल जरूरी permissions दें।
- Separate Projects: Dev, Test और Prod के लिए अलग-अलग projects बनाएं।
- Link Billing: एक billing account से multiple projects link कर सकते हैं।
⚡ Real-Life Example
मान लीजिए आप एक Machine Learning API बनाते हैं जो FastAPI पर चलता है और datasets S3 या GCS में हैं।
आप एक project बनाएंगे ml-api-prod
, उसमें Compute Engine instance launch करेंगे और API host करेंगे।
इसी project का billing आपके production cost track करेगा।
🏆 निष्कर्ष
GCP शुरू करने के लिए सबसे पहला step है Billing setup और Project creation। बिना project के आप कोई भी resource create नहीं कर सकते। अगर आप ML model, API या data pipeline deploy करना चाहते हैं, तो Projects और Billing को सही तरीके से configure करना सबसे जरूरी है। Best practices follow करके आप अपने खर्च को control कर सकते हैं और टीम collaboration आसान बना सकते हैं।