|
1 |
| -# Google Cloud Platform (GCP) Concepts |
| 1 | +# 1. Google Cloud Platform (GCP) Concepts |
2 | 2 |
|
3 | 3 | Google Cloud Platform is a suite of cloud computing services offered by Google. Here are some fundamental concepts to understand when working with GCP:
|
4 | 4 |
|
@@ -123,3 +123,60 @@ Google Cloud Platform is a suite of cloud computing services offered by Google.
|
123 | 123 | - **Apache Beam:** Dataflow is based on the Apache Beam open-source project.
|
124 | 124 |
|
125 | 125 | These advanced concepts and services in Google Cloud Platform expand its capabilities for building scalable, secure, and data-driven cloud solutions.
|
| 126 | + |
| 127 | + |
| 128 | +# 2. Basic Commands |
| 129 | +These are only basic commands for more you can consider https://cloud.google.com/docs |
| 130 | + |
| 131 | +### 1. Login to GCP Account: |
| 132 | +```gcloud auth login``` |
| 133 | + |
| 134 | +### 2. Set Project: (arduino) |
| 135 | +```gcloud config set project PROJECT_ID``` |
| 136 | + |
| 137 | +### 3. List Projects: |
| 138 | +```gcloud projects list``` |
| 139 | + |
| 140 | +### 4. Create a New VM Instance: |
| 141 | +```gcloud compute instances create INSTANCE_NAME --machine-type MACHINE_TYPE --image IMAGE``` |
| 142 | + |
| 143 | +### 5. SSH into a VM Instance: |
| 144 | +```gcloud compute ssh INSTANCE_NAME``` |
| 145 | + |
| 146 | +### 6. List VM Instances: |
| 147 | +```gcloud compute instances list``` |
| 148 | + |
| 149 | +### 7. Create a Cloud Storage Bucket: |
| 150 | +```gsutil mb -p PROJECT_ID gs://BUCKET_NAME/``` |
| 151 | + |
| 152 | +### 8. Upload a File to Cloud Storage: |
| 153 | +```gsutil cp FILE_PATH gs://BUCKET_NAME/``` |
| 154 | + |
| 155 | +### 9. List Files in Cloud Storage Bucket: |
| 156 | +```gsutil ls gs://BUCKET_NAME/``` |
| 157 | + |
| 158 | +### 10. Create a Pub/Sub Topic: |
| 159 | +```gcloud pubsub topics create TOPIC_NAME``` |
| 160 | + |
| 161 | +### 11. Publish a Message to Pub/Sub Topic: |
| 162 | +```gcloud pubsub topics publish TOPIC_NAME --message "MESSAGE"``` |
| 163 | + |
| 164 | +### 12. Create a Cloud SQL Instance (MySQL): |
| 165 | +```gcloud sql instances create INSTANCE_NAME --database-version=MYSQL_5_7 --tier=db-n1-standard-1``` |
| 166 | + |
| 167 | +### 13. List Cloud SQL Instances: |
| 168 | +```gcloud sql instances list``` |
| 169 | + |
| 170 | +### 14. Deploy App Engine Application: |
| 171 | +```gcloud app deploy app.yaml``` |
| 172 | + |
| 173 | +### 15. List App Engine Services: |
| 174 | +```gcloud app services list``` |
| 175 | + |
| 176 | +### 16. Create a Kubernetes Cluster: |
| 177 | +```gcloud container clusters create CLUSTER_NAME --num-nodes=1 --zone=COMPUTE_ZONE``` |
| 178 | + |
| 179 | +### 17. List Kubernetes Clusters: |
| 180 | +```gcloud container clusters list``` |
| 181 | + |
| 182 | +As said you can always official documentation for more commands and concepts https://cloud.google.com/docs |
0 commit comments