Skip to content
This repository has been archived by the owner on May 19, 2024. It is now read-only.

Commit

Permalink
Fixing template to use a smaller timeout and memory configuration, ch…
Browse files Browse the repository at this point in the history
…anging the POWERTOOLS_LOGGER_SAMPLE_RATE environment variable to 10% of executions.
  • Loading branch information
felipemsantos committed Jul 22, 2020
1 parent 387d6e7 commit 66632c6
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions {{ cookiecutter.project_name }}/template.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,7 @@ Description: >
# More info about Globals: https://github.com/awslabs/serverless-application-model/blob/master/docs/globals.rst
Globals:
Function:
Timeout: 30
MemorySize: 512
Timeout: 5
Handler: app.lambda_handler
Runtime: python3.8
{%- if cookiecutter.include_lambda_powertools == "y" %}
Expand All @@ -22,7 +21,7 @@ Globals:
Variables:
LOG_LEVEL: INFO
{%- if cookiecutter.include_lambda_powertools == "y" %}
POWERTOOLS_LOGGER_SAMPLE_RATE: 1
POWERTOOLS_LOGGER_SAMPLE_RATE: 0.1
POWERTOOLS_LOGGER_LOG_EVENT: true
POWERTOOLS_METRICS_NAMESPACE: MyServerlessApplication
{%- endif %}
Expand Down

0 comments on commit 66632c6

Please sign in to comment.