Difference between revisions of "Gcloud compute instances create"

From wikieduonline
Jump to navigation Jump to search
 
(14 intermediate revisions by the same user not shown)
Line 1: Line 1:
 
{{lowercase}}
 
{{lowercase}}
<code>[[gcloud compute instances create]]</code>
+
<code>[[gcloud compute instances]] create</code> <ref>https://cloud.google.com/sdk/gcloud/reference/compute/instances/create</ref>
 +
 
 +
== Example ==
 +
[[Ubuntu LTS]]:
 +
 
 +
{{gcloud ubuntu}}
 +
 
 +
 
 +
[[Debian]]:
 +
gcloud compute instances create my-small-vm [[--machine-type]]=[[f1-micro]] --zone=[[us-central1-a]] [[--image-family]]=debian-10 [[--image-project]]=[[debian-cloud]]
 +
 
 +
Official example:
 +
gcloud compute instances create example-instance --image-family=[[rhel-8]] [[--image-project]]=rhel-cloud [[--zone]]=[[us-central1-a]]
  
 
== Related terms ==
 
== Related terms ==
 
* <code>[[aws ec2 run-instances]]</code>
 
* <code>[[aws ec2 run-instances]]</code>
 
+
* <code>[[gcloud compute instances list]]</code>
 +
* <code>[[gcloud init]]</code>
 +
* [[Terraform resource]]: [[google_compute_instance]]
  
 
== See also ==
 
== See also ==
* {{gcloud}}
+
* {{gcloud compute instances}}
 +
* {{gcloud compute}}
  
 
[[Category:Google Cloud]]
 
[[Category:Google Cloud]]

Latest revision as of 13:42, 27 January 2025

gcloud compute instances create [1]

Example[edit]

Ubuntu LTS:

gcloud compute instances create my-small-vm --machine-type=f1-micro --zone=us-central1-a --image-family=ubuntu-2404-lts --image-project=ubuntu-os-cloud


Debian:

gcloud compute instances create my-small-vm --machine-type=f1-micro --zone=us-central1-a --image-family=debian-10 --image-project=debian-cloud

Official example:

gcloud compute instances create example-instance --image-family=rhel-8 --image-project=rhel-cloud --zone=us-central1-a

Related terms[edit]

See also[edit]

  • https://cloud.google.com/sdk/gcloud/reference/compute/instances/create
  • Advertising: