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

Commit

Permalink
Merge remote-tracking branch 'origin/gcp-dev' into gcp-dev
Browse files Browse the repository at this point in the history
  • Loading branch information
tmiddelkoop committed Jan 13, 2022
2 parents 52d2ebc + dd1c7ea commit 4b3950c
Show file tree
Hide file tree
Showing 8 changed files with 180 additions and 65 deletions.
4 changes: 2 additions & 2 deletions content/GCP/01_intro_to_cloud_console.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -211,7 +211,7 @@
],
"metadata": {
"kernelspec": {
"display_name": "Python 3",
"display_name": "Python 3 (ipykernel)",
"language": "python",
"name": "python3"
},
Expand All @@ -225,7 +225,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.8.8"
"version": "3.7.3"
}
},
"nbformat": 4,
Expand Down
4 changes: 2 additions & 2 deletions content/GCP/02_intro_to_compute.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -277,7 +277,7 @@
],
"metadata": {
"kernelspec": {
"display_name": "Python 3",
"display_name": "Python 3 (ipykernel)",
"language": "python",
"name": "python3"
},
Expand All @@ -291,7 +291,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.8.8"
"version": "3.7.3"
}
},
"nbformat": 4,
Expand Down
18 changes: 12 additions & 6 deletions content/GCP/03_intro_to_cloud_storage.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
"id": "9897048a-6aa8-4d85-a557-d85b802f3f1d",
"metadata": {},
"source": [
"One of the most common and economic ways to store data in the cloud is to use object storage. In GCP object storage is called *Google Cloud Storage*, which is similar to the Simple Storage Service, also known as S3, on Amazon Web Services (AWS). For object storage, information is stored as a collection of key-value pairs."
"There are many storage services in the cloud. One of the most common and economic ways to store data in the cloud is to use object storage. In GCP object storage is called *Google Cloud Storage*, which is similar to the Simple Storage Service, also known as S3, on Amazon Web Services (AWS). For object storage, information is stored as a collection of key-value pairs. This is different to how data is commonly stored on laptops and high performance computing clusters (supercomputers)."
]
},
{
Expand Down Expand Up @@ -67,7 +67,13 @@
"\n",
"You should see a row with your account shown in the Principal column. Here you should see the \"Editor\" Role in the Role column. A *role* is a collection of permissions managed by Google or someone else. The **Editor**, **Owner**, or the **Storage Admin** role for a project will *allow* *you* to create, access, and delete Buckets *in* the project.\n",
"\n",
"There are three important pieces of information that work together to form the **IAM policy**. The permission (role), the identity (principal or member), and the resource (project)."
"There are three important pieces of information that work together to form the **IAM policy**. The permission (role), the identity (principal), and the resource (project). This is another who (identity), what (permission), and where (resource).\n",
"\n",
"### Exercise\n",
"\n",
"Answer the following questions:\n",
" * What is the \"Who, What, Where\" of the IAM policy that allows you to use your project?\n",
" * What else has permissions to do things in your project and state the \"Who, What, Where\"?\n"
]
},
{
Expand Down Expand Up @@ -183,7 +189,7 @@
"id": "3a28e28d-1d70-44fa-a952-4f3506ea85ec",
"metadata": {},
"source": [
"## Discussion\n",
"## Discussion (Optional)\n",
"\n",
"* What does the words \"Secure\", \"Allocate\", \"Follow\", and \"Enumerate\" spell?\n",
"* What happens when you add the \"R\" in \"Review?\"\n",
Expand All @@ -195,7 +201,7 @@
"id": "97d7ebc5-4a81-4f1a-aaf3-517adf70640a",
"metadata": {},
"source": [
"## Resources in Google Cloud Platform - Review\n",
"## Resources in Google Cloud Platform (Optional)\n",
"\n",
"Even though we only covered the Google Cloud Storage service in this episode, this process can be used for other *resources* allocated in the cloud. The term *resource* is used for the \"things\" that live in a Project, such as compute, storage, and networking and other services. Resources have the following characteristics:\n",
"\n",
Expand All @@ -221,7 +227,7 @@
],
"metadata": {
"kernelspec": {
"display_name": "Python 3",
"display_name": "Python 3 (ipykernel)",
"language": "python",
"name": "python3"
},
Expand All @@ -235,7 +241,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.8.8"
"version": "3.7.3"
}
},
"nbformat": 4,
Expand Down
27 changes: 22 additions & 5 deletions content/GCP/04_intro_to_cli.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"id": "5439e525-b985-495f-85a6-e4c8d7452956",
"metadata": {},
"source": [
"# Introduction to the gcloud CLI\n",
"# Introduction to the Command Line Interface (CLI)\n",
"\n",
"\n",
"```{admonition} Overview\n",
Expand Down Expand Up @@ -63,17 +63,34 @@
},
{
"cell_type": "markdown",
"id": "e4fa29a6-7d8e-4591-af3f-8539b94b3bef",
"id": "90229d38-69d3-4bf2-a0ec-c7b2e6c452e4",
"metadata": {},
"source": [
"## Verify the Configuration (Who, What, Where)"
"## Start a Cloud Shell Session\n",
"\n",
"Open up a Cloud shell session by clicking on the terminal icon on the blue bar on the top right of the page (labeled 5 below).\n",
"\n",
"![blue-bar](img/blue-bar.png)\n",
"\n",
"You may wish to push the maximize button (hover over the icons to see the names) on the terminal to make it full screen and change the font size (found in the gear icon) to your liking.\n",
"\n",
"Now test that the `gcloud` command works and you can get help. This is done by running the following:\n",
"```bash\n",
"gcloud help\n",
"```\n",
"\n",
"Use the arrows, page up and page down (also space), to navigate the help screen and press `q` to exit the help screen. (Pressing `h` will give you more information about how to navigate)"
]
},
{
"cell_type": "markdown",
"id": "f786f92c-7127-4f26-b0c0-fc27a364aca4",
"metadata": {},
"id": "b91e0142-a26d-4bfd-9d6d-c455fdbf49f4",
"metadata": {
"tags": []
},
"source": [
"## Verify the Configuration (Who, What, Where)\n",
"\n",
"First, let's verify that the Account being used for access (who) is what we expect."
]
},
Expand Down
20 changes: 7 additions & 13 deletions content/GCP/05_cli_storage.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -936,21 +936,15 @@
],
"metadata": {
"kernelspec": {
"display_name": "Python 3",
"language": "python",
"name": "python3"
"display_name": "Bash",
"language": "bash",
"name": "bash"
},
"language_info": {
"codemirror_mode": {
"name": "ipython",
"version": 3
},
"file_extension": ".py",
"mimetype": "text/x-python",
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.8.8"
"codemirror_mode": "shell",
"file_extension": ".sh",
"mimetype": "text/x-sh",
"name": "bash"
}
},
"nbformat": 4,
Expand Down
Loading

0 comments on commit 4b3950c

Please sign in to comment.