Skip to content

Commit a5f3532

Browse files
committed
Merge branch 'master' of github.com:mupixa/deploy-lambda
2 parents b51939d + 2b8c84f commit a5f3532

File tree

8 files changed

+58275
-45006
lines changed

8 files changed

+58275
-45006
lines changed

README.md

Lines changed: 11 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,11 @@ Github Action to update a Lambda function from a ZIP file.
22

33
## Required parameters
44

5-
- `ZIP`: A ZIP file containing the source of the lambda.
6-
- `FUNCTION_NAME`
75
- `AWS_REGION`
86
- `AWS_SECRET_ID`
97
- `AWS_SECRET_KEY`
8+
- `FUNCTION_NAME`
9+
- `ZIP`: A ZIP file containing the source of the lambda.
1010

1111
## Optional parameters
1212

@@ -17,6 +17,9 @@ Github Action to update a Lambda function from a ZIP file.
1717
- `TIMEOUT`
1818
- `MEMORY_SIZE`
1919
- `ENVIRONMENT`
20+
- `ARCHITECTURES`: A comma separated list if multiple architectures are to be supported
21+
- `S3_BUCKET`: The S3 bucket where the ZIP should be uploaded
22+
- `S3_KEY`: The key that should be used for the ZIP
2023

2124
## Required permisions for the access key
2225

@@ -50,15 +53,15 @@ on:
5053
pull_request:
5154
types: [merged]
5255
branches:
53-
- master
56+
- main
5457
5558
jobs:
5659
deploy-lambda:
5760
if: github.event.pull_request.merged
5861
runs-on: ubuntu-latest
5962
steps:
60-
- uses: actions/checkout@master
61-
- run: echo "GENERATE/FETCH ZIP"
63+
- uses: actions/checkout@main
64+
- run: echo "TODO GENERATE/FETCH ZIP"
6265
- uses: mupixa/deploy-lambda
6366
with:
6467
ZIP: TEST-LAMBDA-ZIP.zip
@@ -68,8 +71,9 @@ jobs:
6871
AWS_SECRET_KEY: ${{ secrets.AWS_SECRET_KEY }}
6972
RUNTIME: 'nodejs12.x'
7073
HANDLER: 'index.handler'
71-
DESCRIPTION: 'Test function description'
74+
DESCRIPTION: 'Example function description'
7275
MEMORY_SIZE: '128'
7376
TIMEOUT: '5'
74-
ENVIRONMENT: '{"VAR_NAME":"VAR_VALUE","TEST":"VALUE"}'
77+
ARCHITECTURES: 'x86-64'
78+
ENVIRONMENT: '{"VAR_NAME":"VAR_VALUE","EXAMPLE_NAME":"EXAMPLE_VALUE"}'
7579
```

action.yml

Lines changed: 17 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -5,20 +5,26 @@ branding:
55
icon: "zap"
66
color: "purple"
77
inputs:
8-
ZIP:
9-
description: "Zip package of the complete Lambda source and dependencies."
8+
AWS_REGION:
9+
description: "AWS region of the Lambda"
1010
default: ""
11-
FUNCTION_NAME:
12-
description: "Name of the Lambda function"
11+
AWS_SECRET_ID:
12+
description: "AWS secret key ID"
1313
default: ""
1414
AWS_SECRET_KEY:
1515
description: "AWS secret key"
1616
default: ""
17-
AWS_SECRET_ID:
18-
description: "AWS secret key ID"
17+
FUNCTION_NAME:
18+
description: "Name of the Lambda function"
1919
default: ""
20-
AWS_REGION:
21-
description: "AWS region of the Lambda"
20+
ZIP:
21+
description: "Zip package of the complete Lambda source and dependencies."
22+
default: ""
23+
S3_BUCKET:
24+
description: "Optional Lambda configuration property"
25+
default: ""
26+
S3_KEY:
27+
description: "Optional Lambda configuration property"
2228
default: ""
2329
RUNTIME:
2430
description: "Optional Lambda configuration property"
@@ -35,6 +41,9 @@ inputs:
3541
MEMORY_SIZE:
3642
description: "Optional Lambda configuration property"
3743
default: ""
44+
ARCHITECTURES:
45+
description: "Optional Lambda configuration property"
46+
default: ""
3847
ENVIRONMENT:
3948
description: "Optional Lambda configuration property"
4049
default: ""

0 commit comments

Comments
 (0)