Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
T
tf_mod_aws_lambda_ebs_snapshots
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
steamhaus
tf_mod_aws_lambda_ebs_snapshots
Commits
c1563701
Commit
c1563701
authored
Jan 18, 2017
by
Chris Merrett
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Converted MIN_RETENTION_TIME env var to an integer
parent
ffd9ea64
Pipeline
#960
passed with stage
in 6 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
1 addition
and
1 deletion
+1
-1
lambda_ebs_snapshots.py
lambda_ebs_snapshots.py
+1
-1
lambda_ebs_snapshots.zip
lambda_ebs_snapshots.zip
+0
-0
No files found.
lambda_ebs_snapshots.py
View file @
c1563701
...
...
@@ -9,7 +9,7 @@ a snapshot of all EBS volumes attached to it. It also tags the snapshots for
deletion after a number of retention days.
"""
MIN_RETENTION_COUNT
=
os
.
environ
[
'MIN_RETENTION_COUNT'
]
MIN_RETENTION_COUNT
=
int
(
os
.
environ
[
'MIN_RETENTION_COUNT'
])
RETENTION_DAYS_DEFAULT
=
os
.
environ
[
'DEFAULT_RETENTION_DAYS'
]
SNAPSHOT_TAG
=
os
.
environ
[
'SNAPSHOT_TAG'
]
RETENTION_TAG
=
os
.
environ
[
'RETENTION_TAG'
]
...
...
lambda_ebs_snapshots.zip
View file @
c1563701
No preview for this file type
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment