From 2a323acdd0dfaa06f050fae1b48fef0bb1a3d784 Mon Sep 17 00:00:00 2001 From: Harish V Date: Wed, 20 Sep 2023 16:13:17 +0800 Subject: [PATCH] fix: logging for env type --- .platform/hooks/predeploy/06_fetch_ssm_parameters.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.platform/hooks/predeploy/06_fetch_ssm_parameters.sh b/.platform/hooks/predeploy/06_fetch_ssm_parameters.sh index bde003791..31cebd0b0 100644 --- a/.platform/hooks/predeploy/06_fetch_ssm_parameters.sh +++ b/.platform/hooks/predeploy/06_fetch_ssm_parameters.sh @@ -18,7 +18,9 @@ if [ ! -d "/efs/isomer" ]; then fi ENV_TYPE=$(/opt/elasticbeanstalk/bin/get-config environment -k SSM_PREFIX) -echo "ENV TYPE: $ENV_TYPE" >> /tmp/ssm-type.txt +TIMESTAMP=$(date '+%Y-%m-%d %H:%M:%S') + +echo "Timestamp: $TIMESTAMP - ENV TYPE: $ENV_TYPE" > /tmp/ssm-type.txt # List of all env vars to fetch ENV_VARS=(