Skip to content

Commit

Permalink
feat: s3 flowlog expiration (#1715)
Browse files Browse the repository at this point in the history
Support expiration of flowlogs when they are stored in S3.

For now, the same pattern as used for general operations and data
expiration was followed.
  • Loading branch information
ml019 authored Jun 24, 2021
1 parent b20687a commit 5f13625
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions engine/setContext.ftl
Original file line number Diff line number Diff line change
Expand Up @@ -233,6 +233,12 @@
[#assign dataPublicIPAddressGroups =
getActiveLayerAttributes( ["Data", "Public", "IPAddressGroups" ], [ SEGMENT_LAYER_TYPE, ENVIRONMENT_LAYER_TYPE ], "" )[0] ]

[#assign flowlogsExpiration =
getActiveLayerAttributes( ["Operations", "FlowLogs", "Expiration"], [ SEGMENT_LAYER_TYPE, ENVIRONMENT_LAYER_TYPE ], 7 )[0] ]

[#assign flowlogsOffline =
getActiveLayerAttributes( ["Operations", "FlowLogs", "Offline"], [ SEGMENT_LAYER_TYPE, ENVIRONMENT_LAYER_TYPE ], "" )[0] ]

[/#if]

[#-- Solution --]
Expand Down

0 comments on commit 5f13625

Please sign in to comment.