Skip to content

Commit 0539142

Browse files
committed
Merge branch 'develop' into docs/tracer-code-split
* develop: chore: move to approach B for multiple IaC chore: add sam build gitignore docs(tracer): split and lint code snippets (aws-powertools#1260) fix(ci): quote prBody GH expr on_opened_pr
2 parents 495e4ba + e8fc575 commit 0539142

File tree

2 files changed

+24
-1
lines changed

2 files changed

+24
-1
lines changed

Diff for: .github/workflows/on_opened_pr.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ jobs:
3030
github-token: ${{ secrets.GITHUB_TOKEN }}
3131
# Maintenance: convert into a standalone JS like post_release.js
3232
script: |
33-
const prBody = ${{ needs.get_pr_details.outputs.prBody }};
33+
const prBody = "${{ needs.get_pr_details.outputs.prBody }}";
3434
const prNumber = ${{ needs.get_pr_details.outputs.prNumber }};
3535
const blockLabel = process.env.BLOCK_LABEL;
3636
const blockReasonLabel = process.env.BLOCK_REASON_LABEL;

Diff for: examples/tracer/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)