diff --git a/distribution/lambda/cdk/stacks/examples/mock_data_stack.py b/distribution/lambda/cdk/stacks/examples/mock_data_stack.py index 17485e8b278..a54018a6d8d 100644 --- a/distribution/lambda/cdk/stacks/examples/mock_data_stack.py +++ b/distribution/lambda/cdk/stacks/examples/mock_data_stack.py @@ -34,6 +34,9 @@ def __init__( self, "mock-data", removal_policy=aws_cdk.RemovalPolicy.DESTROY, + lifecycle_rules=[ + aws_s3.LifecycleRule(enabled=True, expiration=aws_cdk.Duration.days(1)) + ], ) with open("resources/data-generator.py") as f: