Skip to content

Commit

Permalink
Merge pull request #2758 from simlu/dev
Browse files Browse the repository at this point in the history
fix: added expiration for buckets
  • Loading branch information
simlu authored Sep 13, 2022
2 parents e24f8ee + 59c8b19 commit ff1efd5
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/plugin/tasks/serverless/snippets/serverless/data.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,10 @@
CloudTrailS3Bucket:
Type: AWS::S3::Bucket
Properties:
LifecycleConfiguration:
Rules:
- ExpirationInDays: 365
Status: Enabled
Tags:
- Key: service
Value: ${self:service}
Expand All @@ -55,6 +59,10 @@
LogStreamS3Bucket:
Type: AWS::S3::Bucket
Properties:
LifecycleConfiguration:
Rules:
- ExpirationInDays: 365
Status: Enabled
Tags:
- Key: service
Value: ${self:service}
Expand Down
8 changes: 8 additions & 0 deletions test/projects/assorted/@default/serverless/data.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,10 @@
Value: ${self:provider.stage}
- Key: resource
Value: CloudTrailS3Bucket
LifecycleConfiguration:
Rules:
- ExpirationInDays: 365
Status: Enabled
Outputs:
CloudTrailS3BucketName:
Value:
Expand All @@ -61,6 +65,10 @@
Value: ${self:provider.stage}
- Key: resource
Value: LogStreamS3Bucket
LifecycleConfiguration:
Rules:
- ExpirationInDays: 365
Status: Enabled
Outputs:
LogStreamS3BucketName:
Value:
Expand Down

0 comments on commit ff1efd5

Please sign in to comment.