You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Jul 20, 2024. It is now read-only.
This action automatically installs requirements, zips and deploys the code including the dependencies as a separate layer.
8
9
9
-
#### Python 3.8 is supported
10
+
#### Python 3.7 is supported
10
11
11
12
### Pre-requisites
12
13
In order for the Action to have access to the code, you must use the `actions/checkout@master` job before it.
13
14
14
-
### Structure
15
-
- Lambda code should be `lambda_function.py`** unless you want to have a customized file name.
16
-
-**Dependencies must be stored in a `requirements.txt`**
15
+
### File Structure
16
+
This example workflow assumes your `requirements.txt` is in the root directory and that your functions are in folders with their function name as the directory name. Custom layers are assumed to be in a directory that matches their `custom_layer_N_path` value.
17
+
18
+
The below workflow would publish code to layers (pip and any custom layers) and functions (first_function and second_function), and finally also attach the layers to those updated functions.
19
+
17
20
18
21
### Environment variables
19
-
Storing credentials as secret is stronly recommended.
22
+
Storing credentials as a Github secret is strongly recommended.
20
23
21
24
-**AWS Credentials**
22
-
`AWS_ACCESS_KEY_ID`, `AWS_SECRET_ACCESS_KEY`, `REGION` are required.
25
+
`AWS_ACCESS_KEY_ID` and `AWS_SECRET_ACCESS_KEY` are required.
23
26
24
27
### Inputs
25
-
-`lambda_region`
26
-
-`lambda_layer_arn`
27
-
The ARN for the Lambda layer the dependencies should be pushed to **without the version** (version will be automatically updated on AWS).
28
-
-`lambda_function_name`
29
-
The Lambda function name. [From the AWS docs](https://docs.aws.amazon.com/cli/latest/reference/lambda/update-function-code.html), it can be any of the following:
30
-
- Function name - `function-name`
31
-
- Function ARN - `arn:aws:lambda:us-west-2:123456789012:function:function-name`
0 commit comments