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

Commit

Permalink
Pull missing questions, objectives and material
Browse files Browse the repository at this point in the history
  • Loading branch information
tmiddelkoop committed Dec 16, 2021
1 parent 9e05d7c commit acbc483
Show file tree
Hide file tree
Showing 8 changed files with 262 additions and 78 deletions.
45 changes: 40 additions & 5 deletions content/GCP/01_intro_to_cloud_console.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,22 @@
"source": [
"# Introduction to the GCP Cloud Console\n",
"\n",
"Learner Questions\n",
" * How do I find things in the web console?\n",
"```{admonition} Overview\n",
":class: tip\n",
"\n",
"Learning Objectives\n",
" * Login to the Google Cloud web console\n",
" * Find and verify important information about your cloud environment.\n"
"**Teaching:**\n",
"\n",
"**Exercises:**\n",
"\n",
"**Questions:**\n",
" * How do I find things in the web console?\n",
" * How do I access the cloud through the command line?\n",
"\n",
"**Objectives:**\n",
" * Login to the Google Cloud web console\n",
" * Find and verify important information about your cloud environment.\n",
" * Find and open the Cloud Shell\n",
"```"
]
},
{
Expand Down Expand Up @@ -151,6 +161,31 @@
" 9. Google Account (avatar at the far right) - verify and switch accounts."
]
},
{
"cell_type": "markdown",
"id": "50fddb1f-c826-412c-bb3c-127fee6b4949",
"metadata": {
"tags": []
},
"source": [
"## Open a Cloud Shell\n",
"\n",
"The Cloud Shell is an easy way to access Comand Line Interface (CLI) commands in a web browser. Under the hood Cloud Shell is Debian running in a container with 5GB of no-charge persistent storage with most of the Google uti and a lot of other useful tools (git, docker, jq, Docker, etc.) installed by default.\n",
"\n",
"To use the Cloud Shell:\n",
" * Open up a Cloud Shell by clicking on the **Activate Cloud Shell** icon in the right side of the top blue bar. If a \"Authorize Cloud Shell\" dialog appears click \"Authorize\" to allow the Cloud Shell to access the project.\n",
" * Click the **Maximize** icon on the right side of the Cloud Shell bar. You can find the correct icon by hovering over the icons to see their names.\n",
" * If a shell is associated with a project it will show it in the tab and in **yellow text** in round parenthesis in the shell prompt. **Verify the Project ID**.\n",
" * To open up a shell with a specific project click the \"down arrow\" icon next to the plus(+) to open a new tab with a specific project. Selecting the plus (+) will usually open up a shell with the default project.\n",
" * Note: You can open the Cloud Shell in a new tab by clicking on icon **Open in a New Window** on the far right of the Cloud Shell bar.\n",
"\n",
"\n",
"### Opening Cloud Shell in a Tab - Optional\n",
"\n",
" * Click the **Open in a New Window** icon on the far left of the \"Cloud Shell\" tab on the bottom to open up in a separate tab. Hover the mouse over the icons to see their name/function. **Note:** you may need to allow popups or enable popups for this website depending on the browser you use. You can also pull up the tab to increase the shell screen size.\n",
" * Click the **\"Close editor\"** button (the pencil icon in the top right of the window)."
]
},
{
"cell_type": "markdown",
"id": "118254c6-a5d9-4bd0-8a0f-64d4f72b3cf0",
Expand Down
30 changes: 18 additions & 12 deletions content/GCP/02_intro_to_compute.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -9,16 +9,24 @@
"source": [
"# Introduction to Cloud Compute (Google Compute Engine)\n",
"\n",
"Learner Questions\n",
" * How do I compute in the cloud?\n",
"\n",
"Learning Objectives:\n",
" * Navigate the Google Compute Engine service and terminology.\n",
" * Allocate a virtual machine in Google Compute Engine.\n",
" * Choose a machine type based on the application.\n",
" * Understand how storage is managed for virtual machines.\n",
" * Use the cost estimator for Google Compute Engine.\n",
" * Understand what a service account is and how they are used.\n"
"```{admonition} Overview\n",
":class: tip\n",
"\n",
"**Teaching:**\n",
"\n",
"**Exercises:**\n",
"\n",
"**Questions:**\n",
" * How do I create my own computer in the cloud?\n",
"\n",
"**Objectives:**\n",
" * Navigate the Google Compute Engine service 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",
" * Understand 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 @@ -139,8 +147,6 @@
"\n",
"To connect to the *VM Instance* we will use the cloud shell in the web console. Open up a shell by clicking on the **Activate Cloud Shell** icon in the top blue bar if it is not already open.\n",
"\n",
"If you have not used Cloud Shell you may need read through some dialog boxes to create a new Cloud Shell and \"Allow\" the Cloud Shell to access your account.\n",
"\n",
"We first verify that the cloud shell is using the correct identity and *project id* by looking at the welcome message and the prompt. If your shell does not show a project you will have to use the little \"Down Arrow\" next to the \"+\" to create a new tab to select the correct project.\n",
"\n",
"![cloud-shell](img/cloud-shell.png)\n",
Expand Down
30 changes: 19 additions & 11 deletions content/GCP/03_intro_to_cloud_storage.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -7,17 +7,25 @@
"source": [
"# Introduction to Google Cloud Storage\n",
"\n",
"Learner Questions\n",
" * How do I store data in the cloud?\n",
"\n",
"Learning Objectives:\n",
" * Navigate the Google Cloud Storage service and terminology\n",
" * Understand the roles and permissions needed to use Google Cloud Storage in projects\n",
" * Allocate storage in Google Cloud Storage\n",
" * Find the cost estimator for Google Cloud Storage\n",
" * Recognize that resources have a \"location\"\n",
" * Recognize danger of public access\n",
" * De-allocate Google Cloud Storage storage"
"```{admonition} Overview\n",
":class: tip\n",
"\n",
"**Teaching:**\n",
"\n",
"**Exercises:**\n",
"\n",
"**Questions:**\n",
" * How do I store data in the cloud?\n",
"\n",
"**Objectives:**\n",
" * Navigate the Google Cloud Storage service and terminology\n",
" * Understand the roles and permissions needed to use Google Cloud Storage in projects\n",
" * Allocate storage in Google Cloud Storage\n",
" * Find the cost estimator for Google Cloud Storage\n",
" * Recognize that resources have a \"location\"\n",
" * Recognize danger of public access\n",
" * De-allocate Google Cloud Storage storage\n",
"```"
]
},
{
Expand Down
48 changes: 20 additions & 28 deletions content/GCP/04_intro_to_cli.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -7,17 +7,26 @@
"source": [
"# Introduction to the gcloud CLI\n",
"\n",
"Learner Questions\n",
" * How do I use the Cloud CLI?\n",
" * How do I use `gcloud`?\n",
"\n",
"Learning Objectives\n",
" * Find and use the \"Cloud Shell\" in the web console.\n",
" * Use basic cloud CLI commands (`gcloud` and `gsutil`).\n",
" * Verify basic settings.\n",
" * Use environment variables for configuration.\n",
" * Understand the importance of using variables for configuration.\n",
" * Recognize the value of reproducibility and automation.\n",
"```{admonition} Overview\n",
":class: tip\n",
"\n",
"**Teaching:**\n",
"\n",
"**Exercises:**\n",
"\n",
"**Questions:**\n",
" * How do I use the Cloud CLI?\n",
" * How do I use `gcloud`?\n",
"\n",
"**Objectives:**\n",
" * Find and use the \"Cloud Shell\" in the web console.\n",
" * Use basic cloud CLI commands (`gcloud` and `gsutil`).\n",
" * Verify basic settings.\n",
" * Use environment variables for configuration.\n",
" * Understand the importance of using variables for configuration.\n",
" * Recognize the value of reproducibility and automation.\n",
"```\n",
" \n",
"Resources\n",
" * `gcloud` documentation: https://cloud.google.com/sdk/gcloud\n",
Expand Down Expand Up @@ -45,26 +54,9 @@
},
{
"cell_type": "markdown",
"id": "ce598878-1b1c-4e6b-9122-e679e84c7dbb",
"id": "8eb44568-1108-4963-aebf-7f6b98ddaffc",
"metadata": {},
"source": [
"## Open a Cloud Shell\n",
"\n",
"The Cloud Shell is an easy way to access Comand Line Interface (CLI) commands in a web browser. Under the hood Cloud Shell is Debian running in a container with 5GB of no-charge persistent storage with most of the Google uti and a lot of other useful tools (git, docker, jq, Docker, etc.) installed by default.\n",
"\n",
"To use the Cloud Shell:\n",
" * Open up a Cloud Shell by clicking on the **Activate Cloud Shell** icon in the right side of the top blue bar. If a \"Authorize Cloud Shell\" dialog appears click \"Authorize\" to allow the Cloud Shell to access the project.\n",
" * Click the **Maximize** icon on the right side of the Cloud Shell bar. You can find the correct icon by hovering over the icons to see their names.\n",
" * If a shell is associated with a project it will show it in the tab and in **yellow text** in round parenthesis in the shell prompt. **Verify the Project ID**.\n",
" * To open up a shell with a specific project click the \"down arrow\" icon next to the plus(+) to open a new tab with a specific project. Selecting the plus (+) will usually open up a shell with the default project.\n",
" * Note: You can open the Cloud Shell in a new tab by clicking on icon **Open in a New Window** on the far right of the Cloud Shell bar.\n",
"\n",
"\n",
"### Opening Cloud Shell in a Tab - Optional\n",
"\n",
" * Click the **Open in a New Window** icon on the far left of the \"Cloud Shell\" tab on the bottom to open up in a separate tab. Hover the mouse over the icons to see their name/function. **Note:** you may need to allow popups or enable popups for this website depending on the browser you use. You can also pull up the tab to increase the shell screen size.\n",
" * Click the **\"Close editor\"** button (the pencil icon in the top right of the window).\n",
"\n",
"### Advanced call-out\n",
"You can access the cloud shell from your laptop via `gcloud cloud-shell ssh` if you have the [Google Cloud SDK installed](https://cloud.google.com/sdk/docs/install). Installing the Google Cloud SDK will also allow you to run `gcloud` and `gsutil` commands directly from your laptop, workstation, or cluster. *Pro-tip, you cannot use a service account to access the cloud shell.*"
]
Expand Down
20 changes: 15 additions & 5 deletions content/GCP/05_cli_storage.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,22 @@
"source": [
"# Managing Cloud Storage from the Command Line\n",
"\n",
"Learner Questions\n",
" * How do I store data in a Bucket?\n",
"\n",
"Learning Objectives\n",
" * Manage buckets using the command line.\n",
" * Create a bucket with a sensible configuration. \n"
"```{admonition} Overview\n",
":class: tip\n",
"\n",
"**Teaching:**\n",
"\n",
"**Exercises:**\n",
"\n",
"**Questions:**\n",
" * How do I store data in a Bucket?\n",
"\n",
"**Objectives:**\n",
" * Manage buckets using the command line.\n",
" * Create a bucket with a sensible configuration.\n",
" * Learn to manage data (add, list, retrieve, delete) in a bucket using the command line.\n",
"```\n"
]
},
{
Expand Down
4 changes: 2 additions & 2 deletions content/GCP/06_running_analysis.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,10 @@
"**Exercises:**\n",
"\n",
"**Questions:**\n",
" * \n",
" * Can you show me an example?\n",
"\n",
"**Objectives:**\n",
" * \n",
" * Create a simple workflow using a cloud VM and cloud object storage.\n",
"\n",
"```"
]
Expand Down
Loading

0 comments on commit acbc483

Please sign in to comment.