File tree Expand file tree Collapse file tree 1 file changed +10
-4
lines changed
Expand file tree Collapse file tree 1 file changed +10
-4
lines changed Original file line number Diff line number Diff line change 44# #####
55
66echo " 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
1112echo " Installing dependencies..."
1213mkdir 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
1719echo " Zipping dependencies..."
1820zip -r python.zip ./python
1921rm -rf python
22+ echo " OK"
2023
2124# #####
2225
2326echo " Publishing dependencies layer..."
2427response=$( aws lambda publish-layer-version --compatible-runtimes python3.8 --layer-name " ${INPUT_LAMBDA_LAYER_ARN} " --zip-file fileb://python.zip)
2528VERSION=$( echo $response | jq ' .Version' )
2629rm python.zip
30+ echo " OK"
2731
2832# #####
2933
3034echo " Deploying lambda main code..."
3135zip -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
3641echo " 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
You can’t perform that action at this time.
0 commit comments