Skip to content

Commit f2f98b5

Browse files
authored
chore(layers): Update log retention to 10 years (#3424)
Update canary_stack.py Signed-off-by: Simon Thulbourn <[email protected]>
1 parent a25e1b7 commit f2f98b5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Diff for: layer/layer/canary_stack.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ def __init__(
143143
timeout=Duration.seconds(10),
144144
runtime=Runtime.PYTHON_3_9,
145145
architecture=architecture,
146-
log_retention=RetentionDays.ONE_MONTH,
146+
log_retention=RetentionDays.TEN_YEARS,
147147
role=execution_role,
148148
environment={
149149
"POWERTOOLS_VERSION": powertools_version,
@@ -166,7 +166,7 @@ def __init__(
166166
self,
167167
"CanaryCustomResource",
168168
on_event_handler=canary_lambda,
169-
log_retention=RetentionDays.ONE_MONTH,
169+
log_retention=RetentionDays.TEN_YEARS,
170170
)
171171
# force to recreate resource on each deployment with randomized name
172172
CustomResource(

0 commit comments

Comments
 (0)