From f93b253915acdd6303b56e488fad2d938c4eec96 Mon Sep 17 00:00:00 2001 From: kompotkot Date: Thu, 11 Jan 2024 09:52:55 +0000 Subject: [PATCH] Fullcount API deployment with retrieving params --- api/deploy/deploy.bash | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/api/deploy/deploy.bash b/api/deploy/deploy.bash index 42c0ea72..4488d9bf 100755 --- a/api/deploy/deploy.bash +++ b/api/deploy/deploy.bash @@ -47,6 +47,11 @@ cd "${APP_DIR}/api" /home/ubuntu/.nvm/versions/node/v19.9.0/bin/npm run build cd "${EXEC_DIR}" +echo +echo +echo -e "${PREFIX_INFO} Install checkenv" +HOME=/home/ubuntu /usr/local/go/bin/go install github.com/bugout-dev/checkenv@latest + echo echo echo -e "${PREFIX_INFO} Retrieving deployment parameters" @@ -54,6 +59,8 @@ if [ ! -d "${SECRETS_DIR}" ]; then mkdir "${SECRETS_DIR}" echo -e "${PREFIX_WARN} Created new secrets directory" fi +AWS_DEFAULT_REGION="${AWS_DEFAULT_REGION}" /home/ubuntu/go/bin/checkenv show aws_ssm+fullcount:true > "${PARAMETERS_ENV_PATH}" +chmod 0640 "${PARAMETERS_ENV_PATH}" echo echo