Skip to content

Commit fab9d61

Browse files
authored
remove bash outputs
1 parent f062876 commit fab9d61

File tree

1 file changed

+10
-4
lines changed

1 file changed

+10
-4
lines changed

entrypoint.sh

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,37 +4,43 @@ set -e
44
######
55

66
echo "AWS configuration..."
7-
aws configure set default.region "${INPUT_LAMBDA_REGION}"
7+
aws configure set default.region "${INPUT_LAMBDA_REGION}" > /dev/null 2>&1
8+
echo "OK"
89

910
######
1011

1112
echo "Installing dependencies..."
1213
mkdir dependencies
13-
pip install --target=python -r "${INPUT_REQUIREMENTS_TXT}"
14+
pip install --target=python -r "${INPUT_REQUIREMENTS_TXT}" > /dev/null 2>&1
15+
echo "OK"
1416

1517
######
1618

1719
echo "Zipping dependencies..."
1820
zip -r python.zip ./python
1921
rm -rf python
22+
echo "OK"
2023

2124
######
2225

2326
echo "Publishing dependencies layer..."
2427
response=$(aws lambda publish-layer-version --compatible-runtimes python3.8 --layer-name "${INPUT_LAMBDA_LAYER_ARN}" --zip-file fileb://python.zip)
2528
VERSION=$(echo $response | jq '.Version')
2629
rm python.zip
30+
echo "OK"
2731

2832
######
2933

3034
echo "Deploying lambda main code..."
3135
zip -r lambda.zip . -x \*.git\*
32-
aws lambda update-function-code --function-name "${INPUT_LAMBDA_FUNCTION_NAME}" --zip-file fileb://lambda.zip
36+
aws lambda update-function-code --function-name "${INPUT_LAMBDA_FUNCTION_NAME}" --zip-file fileb://lambda.zip > /dev/null 2>&1
37+
echo "OK"
3338

3439
######
3540

3641
echo "Updating lambda layer version..."
37-
aws lambda update-function-configuration --function-name "${INPUT_LAMBDA_FUNCTION_NAME}" --layers "${INPUT_LAMBDA_LAYER_ARN}:${VERSION}"
42+
aws lambda update-function-configuration --function-name "${INPUT_LAMBDA_FUNCTION_NAME}" --layers "${INPUT_LAMBDA_LAYER_ARN}:${VERSION}" > /dev/null 2>&1
43+
echo "OK"
3844

3945
######
4046

0 commit comments

Comments
 (0)