Skip to content

Commit

Permalink
Merge pull request #242 from tremble/secrets/timeout
Browse files Browse the repository at this point in the history
Bump time limit on SM Secrets - terminator is sometimes clobbering secrets
  • Loading branch information
gravesm authored Nov 8, 2022
2 parents f217f2a + f77963b commit 321e787
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions aws/terminator/security_services.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
import datetime

import botocore
import botocore.exceptions

Expand Down Expand Up @@ -219,5 +221,9 @@ def ignore(self):
def created_time(self):
return self.instance['CreatedDate']

@property
def age_limit(self):
return datetime.timedelta(minutes=30)

def terminate(self):
self.client.delete_secret(SecretId=self.name, RecoveryWindowInDays=7)

0 comments on commit 321e787

Please sign in to comment.