Skip to content
This repository has been archived by the owner on Jan 19, 2022. It is now read-only.

Commit

Permalink
Delete server certificates after we've replaced them
Browse files Browse the repository at this point in the history
This change deletes all the replaced certificates in
update_certs.
  • Loading branch information
Niall Creech committed Mar 16, 2016
1 parent dc372d9 commit 21de0d0
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions bootstrap_cfn/fab_tasks.py
Expand Up @@ -592,6 +592,13 @@ def update_certs():
stack_name,
max_retries=3,
retry_delay=10)
for cert_name in replaced_certs:
logger.info("Deleting replaced certificate '%s'..."
% (cert_name))
iam.delete_certificate(cert_name,
stack_name,
max_retries=3,
retry_delay=10)
else:
logger.error("No certificates updated so skipping "
"ELB certificate update...")
Expand Down

0 comments on commit 21de0d0

Please sign in to comment.