Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Custom path & possibility to publish layer and/or lambda #18

Open
wants to merge 47 commits into
base: master
Choose a base branch
from
Open
Changes from 1 commit
Commits
Show all changes
47 commits
Select commit Hold shift + click to select a range
b6b8c78
Add possibility to customize code path
feraudet Oct 27, 2021
5d53a67
Add possibility to publish layer and/or lambda
feraudet Oct 27, 2021
9729c7b
Test
feraudet Oct 27, 2021
157fac3
Test
feraudet Oct 27, 2021
9573f36
Test
feraudet Oct 27, 2021
a43611f
Remove debug cmd
feraudet Oct 27, 2021
ccfd358
Use s3 bucket to store lambda code
feraudet Nov 22, 2021
dc56017
add architectures and runtimes parameters
Nov 22, 2021
593b313
Fully backward uncompatible upgrade. Now deploy.json contains a list …
Nov 23, 2021
2f64dd6
upgrade python version from 3.6 to 3.9
Nov 23, 2021
ebf372e
fix zip -x arguments management
Nov 23, 2021
516bc23
fix rm arguments in entrypoint.sh
Nov 23, 2021
cbaa6b3
add missing layers input to action.yml
Nov 23, 2021
f8114c6
fix INPUT_NAME#TAG splitting pattern
Nov 23, 2021
bc30139
fix layer version retrieval
Nov 23, 2021
574bf89
fix again
Nov 23, 2021
a46ee9a
fix last layer version retrival
Nov 23, 2021
ee63d57
fix get_last_layer_version_arn again
Nov 23, 2021
ea5f852
fix mistyped variable name in entrypoint.sh
Nov 23, 2021
5d3445a
prevent deploy_lambda_layer() from failing silently
Nov 23, 2021
7e8a5ab
fix entrypoint.sh again
Nov 23, 2021
fbb2298
Fully backward incompatible upgrade. One block in deploy is a functio…
Nov 23, 2021
e3254a2
fix zip -x parameters
Nov 23, 2021
19de057
add debug message on $INPUT_EXCLUDES in make_archive()
Nov 23, 2021
07e4c2c
more debug
Nov 23, 2021
0ebdda7
fix zip -x opts processing
Nov 23, 2021
95311f6
try again
Nov 23, 2021
27173b2
try again
Nov 24, 2021
42ed5ed
try again
Nov 24, 2021
cc0e046
add set -x to entrypoint.sh
Nov 24, 2021
8a80886
fix zip -x parameters using set -f
Nov 24, 2021
62d0db4
make archive for layers to have all the contents in python/ directory
Nov 24, 2021
8a01b8f
fix misnamed variable
Nov 24, 2021
de341e1
fix ln arguments
Nov 24, 2021
dcab608
add -v opt to ln
Nov 24, 2021
44adf91
add ls -l
Nov 24, 2021
ba4994f
fix lambda function archive build
Nov 24, 2021
bf94039
remove bash opt set -x
Nov 24, 2021
25204cd
First working commit of the newly designed py-lambda-action
Nov 24, 2021
4605aa9
Disable update-function-code if the lambda function does not exist. A…
Dec 28, 2021
b548059
Add log messages in deploy_lambda_function()
Dec 28, 2021
2c1be5b
update debug message
Dec 28, 2021
d5ded75
enable stderr on get-function operation
Dec 28, 2021
61cb04f
enable stdout on get-function operation
Dec 28, 2021
5464894
add lambda_function_exists() tool
Dec 28, 2021
d210194
fix publish-version
Dec 28, 2021
9f357bc
add aws wait command to wait previous operation before sending the ne…
Dec 28, 2021
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Add possibility to publish layer and/or lambda
  • Loading branch information
feraudet committed Oct 27, 2021
commit 5d53a672376fa19259ddd72af6d37ceffab46541
9 changes: 5 additions & 4 deletions entrypoint.sh
Original file line number Diff line number Diff line change
@@ -3,6 +3,8 @@ set -e

cd "${INPUT_CODE_PATH}"

env

install_zip_dependencies(){
echo "Installing and zipping dependencies..."
mkdir python
@@ -30,10 +32,9 @@ update_function_layers(){
}

deploy_lambda_function(){
install_zip_dependencies
publish_dependencies_as_layer
publish_function_code
update_function_layers
[ -z "$INPUT_LAMBDA_LAYER_ARN" ] && install_zip_dependencies && publish_dependencies_as_layer
[ -z "$INPUT_LAMBDA_FUNCTION_NAME" ] && publish_function_code
[ -z "$INPUT_LAMBDA_LAYER_ARN" ] && [ -z "$INPUT_LAMBDA_FUNCTION_NAME" ] && update_function_layers
}

deploy_lambda_function