Skip to content

Commit e6661f0

Browse files
authored
Fix: Only include layer in SAM template for Python src directory (#1117)
Signed-off-by: Raphael Silva <[email protected]>
1 parent be8e9f1 commit e6661f0

File tree

1 file changed

+0
-29
lines changed

1 file changed

+0
-29
lines changed

python/src/template.yml

Lines changed: 0 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -20,32 +20,3 @@ Resources:
2020
- python3.11
2121
Metadata:
2222
BuildMethod: makefile
23-
api:
24-
Type: AWS::Serverless::Api
25-
Properties:
26-
StageName: api
27-
OpenApiVersion: 3.0.2
28-
function:
29-
Type: AWS::Serverless::Function
30-
Properties:
31-
Handler: lambda_function.lambda_handler
32-
Runtime: python3.9
33-
CodeUri: ./function
34-
Description: Build OTel Python Lambda layer and sample app from scratch
35-
MemorySize: 512
36-
Timeout: 15
37-
Policies:
38-
- AmazonS3ReadOnlyAccess
39-
Environment:
40-
Variables:
41-
AWS_LAMBDA_EXEC_WRAPPER: /opt/python/otel-instrument
42-
Tracing: Active
43-
Layers:
44-
- !Ref OTelLayer
45-
Events:
46-
getEndpoint:
47-
Type: Api
48-
Properties:
49-
RestApiId: !Ref api
50-
Path: /
51-
Method: GET

0 commit comments

Comments
 (0)