You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: content/en/ninja-workshops/6-lambda-kinesis/1-setup.md
+18-16Lines changed: 18 additions & 16 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -9,7 +9,8 @@ weight: 1
9
9
## Prerequisites
10
10
11
11
### Observability Workshop Instance
12
-
The Observability Workshop is most often completed on a Splunk-issued and preconfigured EC2 instance running Ubuntu.
12
+
The Observability Workshop uses the `Splunk4Ninjas - Observability` workshop template in Splunk Show,
13
+
which provides a pre-configured EC2 instance running Ubuntu.
13
14
14
15
Your workshop instructor will provide you with the credentials to your assigned workshop instance.
15
16
@@ -66,19 +67,14 @@ Your Splunk-issued workshop instance should already have **terraform** installed
66
67
sudo apt update && sudo apt install terraform
67
68
```
68
69
69
-
### Workshop Directory (o11y-lambda-workshop)
70
-
The Workshop Directory `o11y-lambda-workshop` is a repository that contains all the configuration files and scripts to complete both the auto-instrumentation and manual instrumentation of the example Lambda-based application we will be using today.
70
+
### Workshop Directory (lambda)
71
+
The Workshop Directory `lambda` is a repository that contains all the configuration files and scripts to complete both the auto-instrumentation and manual instrumentation of the example Lambda-based application we will be using today.
71
72
72
73
- Confirm you have the workshop directory in your home directory:
73
74
```bash
74
-
cd&& ls
75
-
```
76
-
-_The expected output would include **o11y-lambda-workshop**_
77
-
78
-
- If the **o11y-lambda-workshop** directory is not in your home directory, clone it with the following command:
@@ -102,6 +98,11 @@ The AWS CLI requires that you have credentials to be able to access and manage r
102
98
aws configure
103
99
```
104
100
101
+
> Note to the workshop instructor: create a new user in the target AWS account called `lambda-workshop-user`.
102
+
> Ensure it has full permissions to perform the required actions via Terraform. Create an access token for the `lambda-workshop-user`
103
+
> user and share the Access Key ID and Secret Access Key with the workshop participants. Delete the user
104
+
> when the workshop is complete.
105
+
105
106
#### Terraform
106
107
Terraform supports the passing of variables to ensure sensitive or dynamic data is not hard-coded in your .tf configuration files, as well as to make those values reusable throughout your resource definitions.
107
108
@@ -118,7 +119,7 @@ We will be using a combination of _**variables.tf**_ and _**terraform.tfvars**_
118
119
119
120
- Using either **vi** or **nano**, open the _**terraform.tfvars**_ file in either the **auto** or **manual** directory
120
121
```bash
121
-
vi ~/o11y-lambda-workshop/auto/terraform.tfvars
122
+
vi ~/workshop/lambda/auto/terraform.tfvars
122
123
```
123
124
- Set the variables with their values. Replace the **CHANGEME** placeholders with those provided by your instructor.
124
125
```bash
@@ -128,22 +129,23 @@ We will be using a combination of _**variables.tf**_ and _**terraform.tfvars**_
128
129
prefix = "CHANGEME"
129
130
```
130
131
- _Ensure you change only the placeholders, leaving the quotes and brackets intact, where applicable._
132
+
- _For the **otel_lambda_layer**, use the value for**us-east-1** found [here](https://github.com/signalfx/lambda-layer-versions/blob/main/splunk-apm/splunk-apm.md)
131
133
- _The _**prefix**_ is a unique identifier you can choose for yourself, to make your resources distinct from other participants' resources. We suggest using a short form of your name, for example._
132
-
- _Also, please only lowercase letters for the **prefix**. Certain resouces in AWS, such as S3, would through an error if you use uppercase letters._
134
+
- _Also, please only lowercase letters for the **prefix**. Certain resources in AWS, such as S3, would through an error if you use uppercase letters._
133
135
- Save your file and exit the editor.
134
136
- Finally, copy the _**terraform.tfvars**_ file you just edited to the other directory.
- _We do this as we will be using the same values for both the autoinstrumentation and manual instrumentation protions of the workshop_
139
141
140
142
### File Permissions
141
143
142
144
While all other files are fine as they are, the **send_message.py** script in both the `auto` and `manual` will have to be executed as part of our workshop. As a result, it needs to have the appropriate permissions to run as expected. Follow these instructions to set them.
143
145
144
-
- First, ensure you are in the `o11y-lambda-workshop` directory:
146
+
- First, ensure you are in the `lambda` directory:
145
147
```bash
146
-
cd ~/o11y-lambda-workshop
148
+
cd ~/workshop/lambda
147
149
```
148
150
149
151
- Next, run the following command to set executable permissions on the `send_message.py` script:
Copy file name to clipboardExpand all lines: content/en/ninja-workshops/6-lambda-kinesis/2-auto-instrumentation.md
+7-7Lines changed: 7 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -7,12 +7,12 @@ weight: 2
7
7
The first part of our workshop will demonstrate how auto-instrumentation with OpenTelemetry allows the OpenTelemetry Collector to auto-detect what language your function is written in, and start capturing traces for those functions.
8
8
9
9
### The Auto-Instrumentation Workshop Directory & Contents
10
-
First, let us take a look at the `o11y-lambda-workshop/auto` directory, and some of its files. This is where all the content for the auto-instrumentation portion of our workshop resides.
10
+
First, let us take a look at the `workshop/lambda/auto` directory, and some of its files. This is where all the content for the auto-instrumentation portion of our workshop resides.
11
11
12
12
#### The `auto` Directory
13
-
- Run the following command to get into the **o11y-lambda-workshop/auto** directory:
13
+
- Run the following command to get into the **workshop/lambda/auto** directory:
14
14
```bash
15
-
cd~/o11y-lambda-workshop/auto
15
+
cd~/workshop/lambda/auto
16
16
```
17
17
18
18
- Inspect the contents of this directory:
@@ -114,11 +114,11 @@ In order to deploy the resources defined in the `main.tf` file, you first need t
114
114
```bash
115
115
pwd
116
116
```
117
-
- _The expected output would be **~/o11y-lambda-workshop/auto**_
117
+
- _The expected output would be **~/workshop/lambda/auto**_
118
118
119
119
- If you are not in the `auto` directory, run the following command:
120
120
```bash
121
-
cd~/o11y-lambda-workshop/auto
121
+
cd~/workshop/lambda/auto
122
122
```
123
123
124
124
- Run the following command to initialize Terraform in this directory
@@ -172,11 +172,11 @@ To start getting some traces from our deployed Lambda functions, we would need t
172
172
```bash
173
173
pwd
174
174
```
175
-
- _The expected output would be **~/o11y-lambda-workshop/auto**_
175
+
- _The expected output would be **~/workshop/lambda/auto**_
176
176
177
177
- If you are not in the `auto` directory, run the following command
178
178
```bash
179
-
cd~/o11y-lambda-workshop/auto
179
+
cd~/workshop/lambda/auto
180
180
```
181
181
182
182
The `send_message.py` script is a Python script that will take input at the command line, add it to a JSON dictionary, and send it to your `producer-lambda` function's endpoint repeatedly, as part of a while loop.
Copy file name to clipboardExpand all lines: content/en/ninja-workshops/6-lambda-kinesis/4-manual-instrumentation.md
+7-7Lines changed: 7 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -8,14 +8,14 @@ The second part of our workshop will focus on demonstrating how manual instrumen
8
8
9
9
### The Manual Instrumentation Workshop Directory & Contents
10
10
11
-
Once again, we will first start by taking a look at our operating directory, and some of its files. This time, it will be `o11y-lambda-workshop/manual` directory. This is where all the content for the manual instrumentation portion of our workshop resides.
11
+
Once again, we will first start by taking a look at our operating directory, and some of its files. This time, it will be `workshop/lambda/manual` directory. This is where all the content for the manual instrumentation portion of our workshop resides.
12
12
13
13
#### The `manual` directory
14
14
15
-
- Run the following command to get into the `o11y-lambda-workshop/manual` directory:
15
+
- Run the following command to get into the `workshop/lambda/manual` directory:
16
16
17
17
```bash
18
-
cd~/o11y-lambda-workshop/manual
18
+
cd~/workshop/lambda/manual
19
19
```
20
20
21
21
- Inspect the contents of this directory with the `ls` command:
@@ -42,23 +42,23 @@ Let's make sure that all these files that LOOK the same, are actually the same.
42
42
- Compare the `main.tf` files in the `auto` and `manual` directories:
0 commit comments