Skip to content

Commit

Permalink
Add staging lifecycle rule
Browse files Browse the repository at this point in the history
  • Loading branch information
rdettai committed Dec 11, 2023
1 parent a59e22d commit ff74f52
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions distribution/lambda/cdk/stacks/examples/mock_data_stack.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit ff74f52

Please sign in to comment.