File tree 2 files changed +11
-9
lines changed
2 files changed +11
-9
lines changed Original file line number Diff line number Diff line change @@ -23,13 +23,8 @@ load_dir() {
23
23
fi
24
24
25
25
# Removes the application.$application_name prefix if it exists
26
- if [[ " $KEY " == " application." * ]]; then
27
- KEY=${KEY# " application." }
28
- fi
29
-
30
- # Removes the application.$application_name prefix if it exists
31
- if [[ " $KEY " == " $APPLICATION_NAME ." * ]]; then
32
- KEY=${KEY# $APPLICATION_NAME .}
26
+ if [[ " $KEY " == " application.$3 " * ]]; then
27
+ KEY=${KEY# " application.$3 ." }
33
28
fi
34
29
35
30
# Removes the .terraform suffix if it exists
@@ -51,10 +46,10 @@ load_dir() {
51
46
# 2. $WORKDIR/aws-secret
52
47
53
48
# For aws-parameter-store, we strip the first character since it's always a '_'
54
- AWS_PARAMETER_STORE_VARS=$( load_dir " $WORKDIR /aws-parameter-store" 1)
49
+ AWS_PARAMETER_STORE_VARS=$( load_dir " $WORKDIR /aws-parameter-store" 1 $APPLICATION_NAME )
55
50
echo " $AWS_PARAMETER_STORE_VARS "
56
51
57
- AWS_SECRET_VARS=$( load_dir " $WORKDIR /aws-secret" 0)
52
+ AWS_SECRET_VARS=$( load_dir " $WORKDIR /aws-secret" 0 $APPLICATION_NAME )
58
53
echo " $AWS_SECRET_VARS "
59
54
60
55
ENV_VARS=" "
Original file line number Diff line number Diff line change
1
+ KEY=sputnik.endpoint
2
+
3
+ if [[ " $KEY " == " $APPLICATION_NAME ." * ]]; then
4
+ KEY=${KEY# " $APPLICATION_NAME ." }
5
+ fi
6
+
7
+ printf " $KEY "
You can’t perform that action at this time.
0 commit comments