Skip to content
This repository was archived by the owner on Mar 19, 2024. It is now read-only.

Commit 095a03a

Browse files
Add section "Update the lambda layer" to README
1 parent 1a48efd commit 095a03a

File tree

1 file changed

+23
-0
lines changed

1 file changed

+23
-0
lines changed

README.md

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -317,6 +317,29 @@ make update_lambda_with_s3
317317
make update_lambda
318318
```
319319

320+
# Update the lambda layer
321+
322+
The docker image could require security updates or could require updates.
323+
324+
To patch the lambda with a new layer:
325+
326+
1. Rebuild the docker image
327+
```
328+
make docker_build
329+
```
330+
2. package the layer
331+
```
332+
make package_layer
333+
```
334+
3. upload the layer to AWS
335+
```
336+
make upload_lambda_layer
337+
```
338+
4. update the lambda
339+
```
340+
make update_lambda
341+
```
342+
320343
# Contributions
321344

322345
Contributions are more than welcome! Follow [this guide](https://github.com/swift-sprinter/aws-lambda-swift-sprinter/blob/master/CONTRIBUTING.md) to contribute.

0 commit comments

Comments
 (0)