Skip to content

Commit

Permalink
Set 60-day expiration on intermediate buckets
Browse files Browse the repository at this point in the history
Fixes #271
  • Loading branch information
chuckwondo committed Mar 18, 2024
1 parent 76d335a commit 34b273f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions stack/stack.py
Original file line number Diff line number Diff line change
Expand Up @@ -170,13 +170,15 @@ def __init__(self, scope: core.Construct, id: str, **kwargs) -> None:
"LandsatIntermediateBucket",
bucket_name=LANDSAT_INTERMEDIATE_OUTPUT_BUCKET,
removal_policy=core.RemovalPolicy.DESTROY,
lifecycle_rules=[aws_s3.LifecycleRule(expiration=core.Duration.days(60))],
)

self.gibs_intermediate_output_bucket = aws_s3.Bucket(
self,
"GibsIntermediateBucket",
bucket_name=GIBS_INTERMEDIATE_OUTPUT_BUCKET,
removal_policy=core.RemovalPolicy.DESTROY,
lifecycle_rules=[aws_s3.LifecycleRule(expiration=core.Duration.days(60))],
)

self.efs = Efs(self, "Efs", network=self.network)
Expand Down

0 comments on commit 34b273f

Please sign in to comment.