From 509fb61218c86ea7b507e0d8de4f779cad82c0ee Mon Sep 17 00:00:00 2001 From: "shimoda.m@nds-tyo.co.jp" Date: Fri, 19 May 2023 14:50:30 +0900 Subject: [PATCH] =?UTF-8?q?fix:=20=E3=82=BF=E3=82=B0=E5=90=8D=E3=81=A8?= =?UTF-8?q?=E5=80=A4=E3=81=AF=E7=92=B0=E5=A2=83=E5=A4=89=E6=95=B0=E3=81=8B?= =?UTF-8?q?=E3=82=89=E5=8F=96=E3=82=8B=EF=BC=88stop=E3=82=92=E8=B8=8F?= =?UTF-8?q?=E8=A5=B2=EF=BC=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lambda/start-rds/start-rds.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lambda/start-rds/start-rds.py b/lambda/start-rds/start-rds.py index a077cb88..b35d7650 100644 --- a/lambda/start-rds/start-rds.py +++ b/lambda/start-rds/start-rds.py @@ -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): #クラスターを停止