Skip to content
This repository was archived by the owner on Dec 12, 2025. It is now read-only.

Commit

Permalink
GCP: Cleanup Compute.
Browse files Browse the repository at this point in the history
  • Loading branch information
tmiddelkoop committed May 5, 2022
1 parent 9dcb7cc commit f4d1982
Showing 1 changed file with 28 additions and 15 deletions.
43 changes: 28 additions & 15 deletions content/GCP/02_intro_to_compute.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -17,15 +17,15 @@
"**Exercises:** 6 min\n",
"\n",
"**Questions:**\n",
"* How do I create my own computer in the cloud?\n",
" * How do I create my own computer in the cloud?\n",
"\n",
"**Objectives:**\n",
"* Navigate the Google Compute Engine product and terminology.\n",
"* Allocate a virtual machine in Google Compute Engine.\n",
"* Choose a machine type based on the application.\n",
"* Use the cost estimator for Google Compute Engine.\n",
"* Learn what a service account is and how they are used.\n",
"* Learn how to connect to a virtual machine using ssh in the Cloud Shell with the web console.\n",
" * Navigate the Google Compute Engine product and terminology.\n",
" * Allocate a virtual machine in Google Compute Engine.\n",
" * Choose a machine type based on the application.\n",
" * Use the cost estimator for Google Compute Engine.\n",
" * Learn what a service account is and how they are used.\n",
" * Learn how to connect to a virtual machine using ssh in the Cloud Shell with the web console.\n",
"```"
]
},
Expand Down Expand Up @@ -55,7 +55,7 @@
},
{
"cell_type": "markdown",
"id": "c5430b40-1a5f-40df-9e13-529ef3ece4ce",
"id": "05f4a1dd-79eb-49bc-a52e-98e2b77c6ade",
"metadata": {
"tags": []
},
Expand All @@ -76,9 +76,7 @@
" * In the **Identity and API access** section note that for the **Service Accounts** -> **Service account** option that the **Compute Engine default service account** is selected. This allows the *VM Instance* to access resources in the project. Note: the *\"Allow full access to all Cloud APIs\"* allows *everyone* on the VM to *access and edit all resources in the project*.\n",
" * Leave the remaining options as default.\n",
" * Note the **Monthly estimate** in the right side panel. This is only for running the *VM instance* and does not include other storage, networking, compute, and other charges that may occur by running software. Click **Details** show a breakdown of the *VM instance* only costs.\n",
"![compute-create-instance](img/compute-create-instance.png) \n",
" * Finally, click **Create** to create the *VM Instance* (allocate the resource).\n",
"![compute-create-instance-ok](img/compute-create-instance-ok.png)\n"
"![compute-create-instance](img/compute-create-instance.png) "
]
},
{
Expand All @@ -87,11 +85,25 @@
"metadata": {},
"source": [
"```{admonition} Exercise\n",
"* Find the most expensive VM. **DO NOT actually create! Just cancel!**\n",
"* Find the least expensive VM.\n",
":class: exercise\n",
"\n",
" * Find the most expensive VM. **DO NOT actually create!**\n",
" * Find the least expensive VM.\n",
" * Select `e2-medium`\n",
"```"
]
},
{
"cell_type": "markdown",
"id": "92263998-5a0b-4e37-9fc6-605f666309ac",
"metadata": {
"tags": []
},
"source": [
" * Finally, click **Create** to create the *VM Instance* (allocate the resource).\n",
"![compute-create-instance-ok](img/compute-create-instance-ok.png)"
]
},
{
"cell_type": "markdown",
"id": "41c63432-a614-4a1e-9967-f49b68f9069e",
Expand Down Expand Up @@ -286,9 +298,10 @@
"Now that we have made that clear, we will now complete the resource life-cycle by deleting the *VM Instance* we just created. First, try to do this on your own.\n",
"\n",
"```{admonition} Exercise\n",
":class: exercise\n",
"\n",
"* Try to delete the ***VM instance*** on your own\n",
"* Try to follow the process we just learned (hint: *track* and *list*)\n",
" * Try to delete the ***VM instance*** on your own\n",
" * Try to follow the process we just learned (hint: *track* and *list*)\n",
"```"
]
},
Expand Down

0 comments on commit f4d1982

Please sign in to comment.