-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtemplate.yaml
37 lines (33 loc) · 1.03 KB
/
template.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
AWSTemplateFormatVersion: '2010-09-09'
Transform: AWS::Serverless-2016-10-31
Globals:
Function:
Timeout: 60
MemorySize: 128
Resources:
HelloWorldFunction:
Type: AWS::Serverless::Function
Properties:
CodeUri: src/
Handler: hello_world.example.handler
FunctionName: otel-failure-example
Runtime: python3.11
Architectures:
- x86_64
Layers:
- !Sub "arn:aws:lambda:${AWS::Region}:901920570463:layer:aws-otel-python-amd64-ver-1-24-0:1"
Environment:
Variables:
AWS_LAMBDA_EXEC_WRAPPER: /opt/otel-instrument
OPENTELEMETRY_COLLECTOR_CONFIG_FILE: /var/task/otel-collector-config.yaml
OTEL_PROPAGATORS: tracecontext
OTEL_SERVICE_NAME: "Example"
OTEL_METRICS_DATASET: "Example"
HONEYCOMB_API_KEY: "InsertYourKeyHereOrResolveSSM"
Policies:
- Version: '2012-10-17'
Statement:
- Effect: Allow
Action:
- "s3:ListAllMyBuckets"
Resource: "*"