@@ -8,8 +8,9 @@ applies_to:
8
8
product :
9
9
apm_agent_python : ga
10
10
sub :
11
- apm-lambda-ext-v : ver-1-5-7
12
- apm-python-v : ver-6-23-0
11
+ apm-lambda-ext-v : ver-1-6-0
12
+ apm-python-v : ver-6-24-0
13
+ apm-python-layer-v : 3
13
14
---
14
15
15
16
# Monitoring AWS Lambda Python Functions [ lambda-support]
@@ -39,14 +40,14 @@ To add the layers to your Lambda function through the AWS Management Console:
39
40
3 . Choose the * Specify an ARN* radio button
40
41
4 . Copy and paste the following ARNs of the {{apm-lambda-ext}} layer and the APM agent layer in the * Specify an ARN* text input:
41
42
* APM Extension layer:
42
- ```
43
+ ``` bash subs=true
43
44
arn:aws:lambda:{AWS_REGION}:267093732750:layer:elastic-apm-extension-{{apm-lambda-ext-v}}-{ARCHITECTURE}:1 < 1>
44
45
```
45
46
1. Replace ` {AWS_REGION}` with the AWS region of your Lambda function and ` {ARCHITECTURE}` with its architecture.
46
47
47
48
* APM agent layer:
48
- ```
49
- arn:aws:lambda:{AWS_REGION}:267093732750:layer:elastic-apm-python-{{apm-python-v}}:1 <1>
49
+ ` ` ` bash subs=true
50
+ arn:aws:lambda:{AWS_REGION}:267093732750:layer:elastic-apm-python-{{apm-python-v}}:{{apm-python-layer-v}} < 1>
50
51
` ` `
51
52
1. Replace ` {AWS_REGION}` with the AWS region of your Lambda function.
52
53
@@ -57,10 +58,10 @@ To add the layers to your Lambda function through the AWS Management Console:
57
58
::::::{tab-item} AWS CLI
58
59
To add the Layer ARNs of the {{apm-lambda-ext}} and the APM agent through the AWS command line interface execute the following command:
59
60
60
- ```bash
61
+ ` ` ` bash subs=true
61
62
aws lambda update-function-configuration --function-name yourLambdaFunctionName \
62
63
--layers arn:aws:lambda:{AWS_REGION}:267093732750:layer:elastic-apm-extension-{{apm-lambda-ext-v}}-{ARCHITECTURE}:1 \ < 1>
63
- arn:aws:lambda:{AWS_REGION}:267093732750:layer:elastic-apm-python-{{apm-python-v}}:1 <2>
64
+ arn:aws:lambda:{AWS_REGION}:267093732750:layer:elastic-apm-python-{{apm-python-v}}:{{apm-python-layer-v}} < 2>
64
65
` ` `
65
66
1. Replace ` {AWS_REGION}` with the AWS region of your Lambda function and ` {ARCHITECTURE}` with its architecture.
66
67
2. Replace ` {AWS_REGION}` with the AWS region of your Lambda function.
@@ -69,7 +70,7 @@ arn:aws:lambda:{AWS_REGION}:267093732750:layer:elastic-apm-python-{{apm-python-v
69
70
::::::{tab-item} SAM
70
71
In your SAM ` template.yml` file add the Layer ARNs of the {{apm-lambda-ext}} and the APM agent as follows:
71
72
72
- ``` yaml
73
+ ` ` ` yaml subs=true
73
74
...
74
75
Resources:
75
76
yourLambdaFunction:
@@ -78,7 +79,7 @@ Resources:
78
79
...
79
80
Layers:
80
81
- arn:aws:lambda:{AWS_REGION}:267093732750:layer:elastic-apm-extension-{{apm-lambda-ext-v}}-{ARCHITECTURE}:1 < 1>
81
- - arn:aws:lambda:{AWS_REGION}:267093732750:layer:elastic-apm-python-{{apm-python-v}}:1 <2>
82
+ - arn:aws:lambda:{AWS_REGION}:267093732750:layer:elastic-apm-python-{{apm-python-v}}:{{apm-python-layer-v}} < 2>
82
83
...
83
84
` ` `
84
85
1. Replace ` {AWS_REGION}` with the AWS region of your Lambda function and ` {ARCHITECTURE}` with its architecture.
@@ -88,14 +89,14 @@ Resources:
88
89
::::::{tab-item} Serverless
89
90
In your ` serverless.yml` file add the Layer ARNs of the {{apm-lambda-ext}} and the APM agent to your function as follows:
90
91
91
- ``` yaml
92
+ ` ` ` yaml subs=true
92
93
...
93
94
functions:
94
95
yourLambdaFunction:
95
96
handler: ...
96
97
layers:
97
98
- arn:aws:lambda:{AWS_REGION}:267093732750:layer:elastic-apm-extension-{{apm-lambda-ext-v}}-{ARCHITECTURE}:1 < 1>
98
- - arn:aws:lambda:{AWS_REGION}:267093732750:layer:elastic-apm-python-{{apm-python-v}}:1 <2>
99
+ - arn:aws:lambda:{AWS_REGION}:267093732750:layer:elastic-apm-python-{{apm-python-v}}:{{apm-python-layer-v}} < 2>
99
100
...
100
101
` ` `
101
102
1. Replace ` {AWS_REGION}` with the AWS region of your Lambda function and ` {ARCHITECTURE}` with its architecture.
@@ -105,11 +106,11 @@ functions:
105
106
::::::{tab-item} Terraform
106
107
To add the{{apm-lambda-ext}} and the APM agent to your function add the ARNs to the ` layers` property in your Terraform file:
107
108
108
- ``` yaml
109
+ ` ` ` yaml subs=true
109
110
...
110
111
resource " aws_lambda_function" " your_lambda_function" {
111
112
...
112
- layers = ["arn:aws:lambda:{AWS_REGION}:267093732750:layer:elastic-apm-extension-{{apm-lambda-ext-v}}-{ARCHITECTURE}:1", "arn:aws:lambda:{AWS_REGION}:267093732750:layer:elastic-apm-python-{{apm-python-v}}:1 "] <1>
113
+ layers = [" arn:aws:lambda:{AWS_REGION}:267093732750:layer:elastic-apm-extension-{{apm-lambda-ext-v}}-{ARCHITECTURE}:1" , " arn:aws:lambda:{AWS_REGION}:267093732750:layer:elastic-apm-python-{{apm-python-v}}:{{apm-python-layer-v}} " ] < 1>
113
114
}
114
115
...
115
116
` ` `
0 commit comments