Difference between revisions of "Gcloud compute instances create"
Jump to navigation
Jump to search
↑ https://cloud.google.com/sdk/gcloud/reference/compute/instances/create
(Created page with " gcloud compute instances create == See also == * {{gcloud}} Category:Google Cloud") |
|||
(17 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
− | + | {{lowercase}} | |
+ | <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 == | ||
+ | * <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]
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
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]
aws ec2 run-instances
gcloud compute instances list
gcloud init
- Terraform resource: google_compute_instance
See also[edit]
gcloud compute instances
gcloud compute
[instances | images | address | networks | ssh | scp
],pd-standard
Advertising: