Skip to content

Commit ef241df

Browse files
Adding troubleshooting page
1 parent 1ce0e84 commit ef241df

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

examples/build_recipes/troubleshooting/fix-layer-compatibility.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,8 @@
55
# 2. Verify layer compatibility
66
aws lambda get-layer-version \
77
--layer-name AWSLambdaPowertoolsPythonV3-python313-x86_64 \
8-
--version-number 22
8+
--version-number 22 \
9+
--region-name {REGION}
910

1011
# 3. Avoid version conflicts
1112
# Don't include Powertools for AWS in deployment package if using layer

examples/build_recipes/troubleshooting/optimize-cold-starts.sh

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,13 @@
22
# 1. Optimize package size (see above)
33

44
# 2. Use public Powertools for AWS layer
5-
# Layer ARN: arn:aws:lambda:region:017000801446:layer:AWSLambdaPowertoolsPythonV3-python313-x86_64:1
5+
# Layer ARN: arn:aws:lambda:{REGION}:017000801446:layer:AWSLambdaPowertoolsPythonV3-python313-x86_64:1
66

77
# 3. Enable provisioned concurrency for critical functions
88
aws lambda put-provisioned-concurrency-config \
99
--function-name my-function \
10-
--provisioned-concurrency-config ProvisionedConcurrencyCount=10
10+
--provisioned-concurrency-config ProvisionedConcurrencyCount=10 \
11+
--region-name {REGION}
1112

1213
# 4. Minimize imports in handler
1314
# Import only what you need, avoid heavy imports at module level

0 commit comments

Comments
 (0)