fix: タグ名と値は環境変数から取る(stopを踏襲)

This commit is contained in:
shimoda.m@nds-tyo.co.jp 2023-05-19 14:50:30 +09:00
parent c46b4ad552
commit 509fb61218

View File

@ -5,8 +5,8 @@ import boto3
#環境変数
client = boto3.client('rds')
AUTO_START_TAG_TAGKEY = 'AUTO_START'
AUTO_START_ENABLE = 'true'
AUTO_START_TAG_TAGKEY = os.environ['AUTO_START_TAG_TAGKEY']
AUTO_START_ENABLE = os.environ['AUTO_START_ENABLE']
def lambda_handler(event, context):
#クラスターを停止