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: TESTING.md
+5-6
Original file line number
Diff line number
Diff line change
@@ -10,9 +10,7 @@ To run an unreleased version of this extension, you will need to ensure that you
10
10
To build the extension in the `bin/extensions` folder, run the following commands.
11
11
12
12
```bash
13
-
$ cd apm-lambda-extension
14
-
$ GOOS=linux GOARCH=amd64 go build -o bin/extensions/apm-lambda-extension main.go
15
-
$ chmod +x bin/extensions/apm-lambda-extension
13
+
$ make build
16
14
```
17
15
18
16
### Layer Setup Process
@@ -24,8 +22,7 @@ The extensions .zip file should contain a root directory called `extensions/`, w
24
22
To create the zip file, run the following commands from the root of your project folder.
25
23
26
24
```bash
27
-
$ cd apm-lambda-extension/bin
28
-
$ zip -r extension.zip extensions/
25
+
$ make zip
29
26
```
30
27
31
28
To publish the zip file as a layer, run the following command using the AWS cli (presumes you have v2 of the aws-cli installed).
@@ -37,7 +34,9 @@ Publish a new layer using the `extension.zip`. The output of the following comma
37
34
aws lambda publish-layer-version \
38
35
--layer-name "apm-lambda-extension" \
39
36
--region <use your region> \
40
-
--zip-file "fileb://extension.zip"
37
+
--description "AWS Lambda Extension Layer for Elastic APM" \
38
+
--license "Apache-2.0" \
39
+
--zip-file "fileb://./bin/extension.zip"
41
40
```
42
41
43
42
The output from the above command will include a `LayerVersionArn` field, which contains the unique string identifier for your layer. The will look something like the following.
0 commit comments