Skip to content

Commit 4c6567b

Browse files
authored
Merge pull request #4 from bugout-dev/scripts-version
Added version echo to control script versions due deployment
2 parents ea21f69 + 5ff8115 commit 4c6567b

2 files changed

Lines changed: 10 additions & 1 deletion

File tree

scripts/nodes-connections.bash

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@
33
# Update nodes connection address environment variables
44
# from AWS Route53 internal hosted zone
55

6+
VERSION='0.0.1'
7+
68
# Colors
79
C_RESET='\033[0m'
810
C_RED='\033[1;31m'
@@ -60,6 +62,8 @@ if [ ! -f "${file_flag}" ]; then
6062
exit 1
6163
fi
6264

65+
verbose "${PREFIX_INFO} Script version: v${VERSION}"
66+
6367
verbose "${PREFIX_INFO} Source environment variables"
6468
. ${file_flag}
6569

scripts/parameters.bash

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
#!/usr/bin/env bash
22
#
3-
# Collect secrets from AWS SSM Parameter Store and output as environment variable exports.
3+
# Collect secrets from AWS SSM Parameter Store and
4+
# opt out as environment variable exports.
5+
6+
VERSION='0.0.1'
47

58
# Colors
69
C_RESET='\033[0m'
@@ -58,6 +61,8 @@ if [ -z "${product_flag}" ]; then
5861
exit 1
5962
fi
6063

64+
verbose "${PREFIX_INFO} Script version: v${VERSION}"
65+
6166
verbose "${PREFIX_INFO} Retrieving deployment parameters with tag ${C_GREEN}Product:${product_flag}${C_RESET}"
6267
ENV_PARAMETERS=$(aws ssm describe-parameters \
6368
--parameter-filters Key=tag:Product,Values=${product_flag} \

0 commit comments

Comments
 (0)