Skip to content

Commit ab2ad8d

Browse files
committed
chore: move to approach B for multiple IaC
1 parent 0252da6 commit ab2ad8d

File tree

1 file changed

+23
-0
lines changed

1 file changed

+23
-0
lines changed

examples/tracer/sam/template.yaml

+23
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
AWSTemplateFormatVersion: "2010-09-09"
2+
Transform: AWS::Serverless-2016-10-31
3+
Description: AWS Lambda Powertools Tracer doc examples
4+
5+
Globals:
6+
Function:
7+
Timeout: 5
8+
Runtime: python3.9
9+
Tracing: Active
10+
Environment:
11+
Variables:
12+
POWERTOOLS_SERVICE_NAME: example
13+
Layers:
14+
# Find the latest Layer version in the official documentation
15+
# https://awslabs.github.io/aws-lambda-powertools-python/latest/#lambda-layer
16+
- !Sub arn:aws:lambda:${AWS::Region}:017000801446:layer:AWSLambdaPowertoolsPython:21
17+
18+
Resources:
19+
CaptureLambdaHandlerExample:
20+
Type: AWS::Serverless::Function
21+
Properties:
22+
CodeUri: ../src
23+
Handler: capture_lambda_handler.handler

0 commit comments

Comments
 (0)