File tree Expand file tree Collapse file tree 2 files changed +5
-3
lines changed
examples/build_recipes/troubleshooting Expand file tree Collapse file tree 2 files changed +5
-3
lines changed Original file line number Diff line number Diff line change 55# 2. Verify layer compatibility
66aws 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
Original file line number Diff line number Diff line change 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
88aws 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
You can’t perform that action at this time.
0 commit comments