-
Notifications
You must be signed in to change notification settings - Fork 10
Expand file tree
/
Copy pathgcloud-instance.txt
More file actions
38 lines (25 loc) · 1.24 KB
/
gcloud-instance.txt
File metadata and controls
38 lines (25 loc) · 1.24 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
gcloud compute instances create batch17
gcloud compute instances create batch18 --zone us-central1-a
gcloud compute instances list
gcloud compute instances delete batch17
gcloud compute instances delete batch19
gcloud compute ssh batch17
exit
gcloud compute ssh batch18
If you do not specify additional parameters, such as a zone, Google Cloud will use your information from your default project. You can view your project information using the following gcloud command
gcloud compute project-info describe
gcloud compute instances create ace-instance-2 --zone us-central1-a
gcloud compute instances list
gcloud compute instances describe INSTANCE-NAME
gcloud compute instances stop INSTANCE-NAME
gcloud compute instances start INSTANCE-NAME
gcloud compute instances delete INSTANCE-NAME
gcloud compute instances create batch17
gcloud compute instances create batch18 --zone us-central1-a
gcloud compute instances list
gcloud compute instances delete batch17
gcloud compute instances delete batch19
gcloud compute ssh batch17
exit
gcloud compute ssh batch18
If you do not specify additional parameters, such as a zone, Google Cloud will use your information from your default project. You can view your project information using the following gcloud command