Skip to content

Commit 7c97999

Browse files
Address AI feedback
Signed-off-by: Lukasz Gryglicki <[email protected]> Assisted by [OpenAI](https://platform.openai.com/) Assisted by [GitHub Copilot](https://github.com/features/copilot)
1 parent 0a37851 commit 7c97999

File tree

7 files changed

+13
-11
lines changed

7 files changed

+13
-11
lines changed

utils/get_all_functions_configs.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
#!/bin/bash
2-
2+
set -euo pipefail
3+
export AWS_PAGER=""
34
for f in $(./utils/list_aws_functions.sh)
45
do
56
echo "${f}:"

utils/get_all_ssms_values.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
# SINGLE=1 will print each parameter one by one
33
for f in $(./utils/list_ssm_parameters.sh)
44
do
5-
if [ -z "$SINGLE" ]
5+
if [ -z "${SINGLE}" ]
66
then
77
if [ -z "${params}" ]
88
then

utils/get_function_config.sh

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,17 @@
11
#!/bin/bash
2-
2+
set -euo pipefail
3+
export AWS_PAGER=""
34
if [ -z "$1" ]
45
then
56
echo "Usage: $0 <function-name>"
67
exit 1
78
fi
8-
99
if [ -z "$REGION" ]
1010
then
1111
REGION="us-east-2"
1212
fi
13-
1413
if [ -z "$STAGE" ]
1514
then
1615
STAGE="dev"
1716
fi
18-
1917
aws lambda get-function-configuration --function-name "${1}" --region "${REGION}" --profile "lfproduct-${STAGE}"

utils/get_ssm_value.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
#!/bin/bash
2+
set -euo pipefail
3+
export AWS_PAGER=""
24
if [ -z "$1" ]
35
then
46
echo "Usage: $0 <ssm-parameter-name>"

utils/get_ssms_values.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
#!/bin/bash
2+
set -euo pipefail
3+
export AWS_PAGER=""
24
if [ -z "$1" ]
35
then
46
echo "Usage: $0 <ssm-parameter-name> [...]"

utils/list_aws_functions.sh

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,15 @@
11
#!/bin/bash
2-
2+
set -euo pipefail
3+
export AWS_PAGER=""
34
if [ -z "$REGION" ]
45
then
56
REGION="us-east-2"
67
fi
7-
88
if [ -z "$STAGE" ]
99
then
1010
STAGE="dev"
1111
fi
12-
1312
FILTER=${FILTER:-}
14-
1513
aws lambda list-functions --region "$REGION" --profile "lfproduct-${STAGE}" --query 'Functions[*].FunctionName' --output text |
1614
tr '\t' '\n' |
1715
sort -u |

utils/list_ssm_parameters.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
11
#!/bin/bash
2+
set -euo pipefail
3+
export AWS_PAGER=""
24
if [ -z "$REGION" ]
35
then
46
REGION="us-east-2"
57
fi
6-
78
if [ -z "$STAGE" ]
89
then
910
STAGE="dev"

0 commit comments

Comments
 (0)