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