Skip to content

Commit 94e686e

Browse files
ddiannaejonthegeek
andauthored
Updating content for chapter 7 (#42)
* Updating content for chapter 7 * Update slides/07.Rmd * Fix video references --------- Co-authored-by: Jon Harmon <[email protected]>
1 parent 2c863ed commit 94e686e

File tree

31 files changed

+350
-209
lines changed

31 files changed

+350
-209
lines changed

_freeze/slides/07/execute-results/html.json

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,11 @@
11
{
2-
"hash": "132ed8e84493552ecea49454926fdf8d",
2+
"hash": "9919e7dc1a046d756a57e21544836568",
33
"result": {
44
"engine": "knitr",
5-
"markdown": "---\nengine: knitr\ntitle: Getting Started with the Cloud\n---\n\n## Learning objectives\n\n- Recognize **why** you might (and might not) want to **host services in the cloud.**\n- Differentiate between **IaaS, PaaS,** and **SaaS.**\n- List some **common cloud services.**\n- Start and stop an **EC2 instance** on AWS.\n\n## Quick Section Overview\n\n> So this section is really targeting the student who wants to **host a project for portfolio purposes,** the hobbyist who's **hosting a toy project,** or the data science leader who **has no choice but to host things for themselves because they just can't get IT/Admin support.**\n\n🎉🎉🎉 I've been two of those things in the last year!\n\n## Why cloud?\n\n- It probably isn't cheaper.\n- It's faster and easier.\n - No need to wait for new hardware to arrive and be installed.\n\n## Things as a Service\n\n::: {style=\"display: flex;\"}\n<div>\n\n**Infrastructure as a Service (IaaS, \"eye-az\")** ![Raw ingredients for a cake.](images/06_raw-ingredients.jpg){width=\"400\"}\n\n</div>\n\n<div>\n\n**Platform as a Service (PaaS, \"pass\")** ![A box of Betty Crocker cake mix.](images/06_cake-mix.png){width=\"400\"}\n\n</div>\n\n<div>\n\n**Software as a Service (SaaS, \"sass\")** ![An undecorated sheet cake.](images/06_sheet-cake.jpg){width=\"400\"}\n\n</div>\n:::\n\n## Common Cloud Services\n\n| Service | AWS | Azure | GCP |\n|------------------|-------------------|------------------|------------------|\n| Kubernetes cluster | EKS (Elastic Kubernetes Service) | AKS (Azure Kubernetes Service) | GKE (Google Kubernetes Engine) |\n| Run a function as an API | Lambda | Azure Functions | Google Cloud Functions |\n| Database | RDS/Redshift | Azure Database | Google Cloud SQL |\n| ML Platform | SageMaker | Azure ML | Vertex AI |\n\n## Discuss the Lab\n\n<https://aws.amazon.com>\n\n## Meeting Videos\n\n### Cohort 1\n\n<iframe src=\"https://www.youtube.com/embed/O6lhqSz-8Dw\" width=\"100%\" height=\"400px\" data-external=\"1\"></iframe>\n",
6-
"supporting": [],
5+
"markdown": "---\nengine: knitr\ntitle: The Cloud\n---\n\n## Learning objectives\n\n- Recognize **why** you might (and might not) want to **host services in the cloud.**\n- Differentiate between **IaaS, PaaS,** and **SaaS.**\n- List some **common cloud services.**\n- Start and stop an **EC2 instance** on AWS.\n\n## Quick Section Overview\n\n> So this section is really targeting the student who wants to **host a project for portfolio purposes,** the hobbyist who's **hosting a toy project,** or the data science leader who **has no choice but to host things for themselves because they just can't get IT/Admin support.**\n\n## Why cloud?\n\n- Flexibility: easy to re-scale.\n- No need to manage hardware.\n- Cheaper? \n - Not so much\n\n## Things as a Service\n\n**Infrastructure as a Service (IaaS, \"eye-az\")** \n\n- *Rent a server*\n- It is actually a **VM**: a virtualized server on a virtual machine, called an instance. \n- **Spot instances**: for stateless, fault-tolerant applications. \n - Cheaper, they lend you space no one is using.\n - Preemptible, they can be claimed back.\n\n## Things as a Service \n\n**Platform as a Service (PaaS, \"pass\")** \n\n- They manage the servers AND your applications. \n- You get a ready to use environment for your applications. \n- Examples:\n - Blob storage\n - Lambdas, *serverless* functions\n - Container orchestration, Kubernetes\n- Posit Connect Cloud\n\n\n## Things as a Service\n**Software as a Service (SaaS, \"sass\")** \n\n- You rent the end-user software. \n- Data as a service?\n\n![Types of Saas. From [What Is Software as a Service (SaaS)?](https://www.spiceworks.com/tech/cloud/articles/what-is-software-as-a-service/)](images/07_saas.png)\n\n\n## Common Cloud Services\n\n| Service | AWS | Azure | GCP |\n|------------------|-------------------|------------------|------------------|\n| Kubernetes cluster | EKS (Elastic Kubernetes Service) | AKS (Azure Kubernetes Service) | GKE (Google Kubernetes Engine) |\n| Run a function as an API | Lambda | Azure Functions | Google Cloud Functions |\n| Database | RDS/Redshift | Azure Database | Google Cloud SQL |\n| ML Platform | SageMaker | Azure ML | Vertex AI |\n| Access control | IAM | Microsoft Entra ID | Identity Access Management |\n\n## Discuss the Lab\n\n<https://aws.amazon.com>\n\n## Meeting Videos\n\n### Cohort 1\n\n<iframe src=\"https://www.youtube.com/embed/O6lhqSz-8Dw\" width=\"100%\" height=\"400px\" data-external=\"1\"></iframe>\n\n## Cohort 2\n\n<iframe src=\"https://www.youtube.com/embed/yk8LqHzlS7s\" width=\"100%\" height=\"400px\" data-external=\"1\"></iframe>",
6+
"supporting": [
7+
"07_files"
8+
],
79
"filters": [
810
"rmarkdown/pagebreak.lua"
911
],

slides/02.Rmd

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -103,19 +103,3 @@ Comprehension questions
103103
- What libraries could you use to implement a three-layer architecture in R or Python?
104104
- How do you reduce the data requirements for your project?
105105
- How do you handle your intermediate artifacts?
106-
107-
## Meeting Videos {-}
108-
109-
### Cohort 1 {-}
110-
111-
`r knitr::include_url("https://www.youtube.com/embed/Dh1g_D_Ir0A")`
112-
113-
<details>
114-
115-
<summary>Meeting chat log</summary>
116-
```
117-
00:02:43 Gus Lipkin: East Coast US, 1pm local
118-
00:44:48 Gus Lipkin: https://xkcd.com/927/
119-
00:57:17 Jack Penzer: Graph databases <3
120-
```
121-
</details>

slides/03.Rmd

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -96,19 +96,3 @@ Left those as an open discussion questions?
9696
| Choose the appropriate storage solution for an app. | |
9797
| Authorize an app to access data. | |
9898
| Consider database-as-a-service options. | |
99-
100-
## Meeting Videos {-}
101-
102-
### Cohort 1 {-}
103-
104-
`r knitr::include_url("https://www.youtube.com/embed/Dh1g_D_Ir0A")`
105-
106-
<details>
107-
108-
<summary>Meeting chat log</summary>
109-
```
110-
00:02:43 Gus Lipkin: East Coast US, 1pm local
111-
00:44:48 Gus Lipkin: https://xkcd.com/927/
112-
00:57:17 Jack Penzer: Graph databases <3
113-
```
114-
</details>

slides/04.Rmd

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -78,10 +78,3 @@ info(log, message = "Log starting.", my_var = 2)
7878
- Differentiate between logs and metrics.
7979
- Log events from your code using the {log4r} package.
8080
- Recognize some open source options for emitting metrics.
81-
82-
83-
## Meeting Videos {-}
84-
85-
### Cohort 1 {-}
86-
87-
`r knitr::include_url("https://www.youtube.com/embed/UFC_S1D9WGk")`

slides/05.Rmd

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -150,19 +150,3 @@ You write code that tells the CI/CD tool to:
150150
| infrastructure as code (IaC) tooling. | * IaC Tools help you stay away from |
151151
| | drifting |
152152
+---------------------------------------+--------------------------------------+
153-
154-
155-
## Meeting Videos {-}
156-
157-
### Cohort 1 {-}
158-
159-
`r knitr::include_url("https://www.youtube.com/embed/9qQ4YpEgkr0")`
160-
161-
<details>
162-
<summary> Meeting chat log </summary>
163-
164-
```
165-
00:44:58 priyanka gagneja: fantastic question
166-
00:47:25 priyanka gagneja: and dates
167-
```
168-
</details>

slides/06.qmd

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -102,11 +102,3 @@ RUN ["head", "/data/data.csv"] # <3>
102102
- Data can be preserved from instance to instance of the same container using mounted volumes
103103

104104
- Containers are a process that executes the layers of your Dockerfile
105-
106-
## Meeting Videos {-}
107-
108-
### Cohort 1 {-}
109-
110-
`r knitr::include_url("https://www.youtube.com/embed/gzJ3eT6tcog")`
111-
112-
`r knitr::include_url("https://www.youtube.com/embed/CHbaTCo4gQk")`

slides/07.Rmd

Lines changed: 27 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
engine: knitr
3-
title: Getting Started with the Cloud
3+
title: The Cloud
44
---
55

66
## Learning objectives
@@ -14,35 +14,44 @@ title: Getting Started with the Cloud
1414

1515
> So this section is really targeting the student who wants to **host a project for portfolio purposes,** the hobbyist who's **hosting a toy project,** or the data science leader who **has no choice but to host things for themselves because they just can't get IT/Admin support.**
1616
17-
🎉🎉🎉 I've been two of those things in the last year!
18-
1917
## Why cloud?
2018

21-
- It probably isn't cheaper.
22-
- It's faster and easier.
23-
- No need to wait for new hardware to arrive and be installed.
19+
- Flexibility: easy to re-scale.
20+
- No need to manage hardware.
21+
- Cheaper?
22+
- Not so much
2423

2524
## Things as a Service
2625

27-
::: {style="display: flex;"}
28-
<div>
26+
**Infrastructure as a Service (IaaS, "eye-az")**
27+
28+
- *Rent a server*
29+
- It is actually a **VM**: a virtualized server on a virtual machine, called an instance.
30+
- **Spot instances**: for stateless, fault-tolerant applications.
31+
- Cheaper, they lend you space no one is using.
32+
- Preemptible, they can be claimed back.
2933

30-
**Infrastructure as a Service (IaaS, "eye-az")** ![Raw ingredients for a cake.](images/06_raw-ingredients.jpg){width="400"}
34+
## Things as a Service
3135

32-
</div>
36+
**Platform as a Service (PaaS, "pass")**
3337

34-
<div>
38+
- They manage the servers AND your applications.
39+
- You get a ready to use environment for your applications.
40+
- Examples:
41+
- Blob storage
42+
- Lambdas, *serverless* functions
43+
- Container orchestration, Kubernetes
44+
- Posit Connect Cloud
3545

36-
**Platform as a Service (PaaS, "pass")** ![A box of Betty Crocker cake mix.](images/06_cake-mix.png){width="400"}
3746

38-
</div>
47+
## Things as a Service
48+
**Software as a Service (SaaS, "sass")**
3949

40-
<div>
50+
- You rent the end-user software.
51+
- Data as a service?
4152

42-
**Software as a Service (SaaS, "sass")** ![An undecorated sheet cake.](images/06_sheet-cake.jpg){width="400"}
53+
![Types of Saas. From [What Is Software as a Service (SaaS)?](https://www.spiceworks.com/tech/cloud/articles/what-is-software-as-a-service/)](images/07_saas.png)
4354

44-
</div>
45-
:::
4655

4756
## Common Cloud Services
4857

@@ -52,13 +61,8 @@ title: Getting Started with the Cloud
5261
| Run a function as an API | Lambda | Azure Functions | Google Cloud Functions |
5362
| Database | RDS/Redshift | Azure Database | Google Cloud SQL |
5463
| ML Platform | SageMaker | Azure ML | Vertex AI |
64+
| Access control | IAM | Microsoft Entra ID | Identity Access Management |
5565

5666
## Discuss the Lab
5767

5868
<https://aws.amazon.com>
59-
60-
## Meeting Videos
61-
62-
### Cohort 1
63-
64-
`r knitr::include_url("https://www.youtube.com/embed/O6lhqSz-8Dw")`

slides/08.qmd

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -109,10 +109,3 @@ For example, connecting to the server at `server.example.com` as the user `alex`
109109

110110
- For debugging SSH: Add a `-v` to your command for verbose mode
111111
- Add another v for more verbosity with `-vv`, and if that’s not enough, add another v for super verbose mode
112-
113-
114-
## Meeting Videos {.unnumbered}
115-
116-
### Cohort 1 {.unnumbered}
117-
118-
`r knitr::include_url("https://www.youtube.com/embed/_umuxP_u-d0")`

slides/09.Rmd

Lines changed: 0 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -107,22 +107,3 @@ sudo docker run --rm -d \
107107

108108
- `ssh -NL 8555:localhost:8555 test-user@$SERVER_ADDRESS`
109109
- [It's an api!](http://localhost:8555/__docs__/)
110-
111-
## Meeting Videos {-}
112-
113-
### Cohort 1 {-}
114-
115-
`r knitr::include_url("https://www.youtube.com/embed/NbSDSB-kYA0")`
116-
117-
<details>
118-
<summary> Meeting chat log </summary>
119-
120-
```
121-
00:21:29 novica nakov: it's more fun with more than one key :)
122-
00:22:45 novica nakov: no you copied in your local folder
123-
00:28:28 Tinashe Tapera: ssh-copy-id: https://www.ssh.com/academy/ssh/copy-id
124-
00:41:20 Gus Lipkin: There’s a gui Docker image available for nginx that makes things easier (or more complicated depending on how you feel): https://nginxproxymanager.com/
125-
00:43:09 Tinashe Tapera: This is really nice
126-
00:51:45 Ahmed: pretty cool!
127-
```
128-
</details>

slides/11.Rmd

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -90,11 +90,3 @@ $\textrm{Necessary Storage} = \textrm{approx data} + 1 \textrm{GB} \times n \tex
9090
## Lab {-}
9191

9292
Not much to say here...🤷
93-
94-
## Meeting Videos {-}
95-
96-
### Cohort 1 {-}
97-
98-
`r knitr::include_url("https://www.youtube.com/embed/VhTUMF9e-O0")`
99-
100-
`r knitr::include_url("https://www.youtube.com/embed/aV5aVjqzZ3c")`

0 commit comments

Comments
 (0)