Skip to content
This repository was archived by the owner on Feb 3, 2023. It is now read-only.

Commit 263c6ca

Browse files
committed
add version logging
1 parent 17aa7d8 commit 263c6ca

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

ebs-backup.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,13 +18,16 @@
1818
import boto3
1919
from dateutil.relativedelta import relativedelta
2020

21+
VERSION = '1.0.1'
22+
2123
logger = logging.getLogger()
2224
logger.setLevel(logging.INFO)
2325
ec2 = boto3.resource('ec2')
2426
client = boto3.client('ec2')
2527

2628

2729
def lambda_handler(event, context):
30+
logger.info('Start ebs-backup v{}'.format(VERSION))
2831
backup()
2932
expire()
3033

0 commit comments

Comments
 (0)