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 Mar 19, 2024. It is now read-only.
Copy file name to clipboardExpand all lines: README.md
+22-4Lines changed: 22 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -212,7 +212,7 @@ Steps:
212
212
213
213
There are many ways to achieve a lambda deployment (AWS Console, SAM, CloudFormation ...), please refer to the latest [AWS Lambda documentation](https://docs.aws.amazon.com/lambda/latest/dg/welcome.html) to know more.
214
214
215
-
####Requirements
215
+
## Requirements
216
216
217
217
- an AWS account for test purpose.
218
218
- aws cli: Install the aws cli. Here the [instructions](https://docs.aws.amazon.com/cli/latest/userguide/cli-chap-welcome.html).
@@ -244,7 +244,7 @@ Datetime based versions are created and uploaded to S3 every time your version i
244
244
make upload_lambda_layer
245
245
```
246
246
247
-
####2) Create the Lambda
247
+
### 2) Create the Lambda
248
248
249
249
You can create a new lambda which might take a few minutes using one of the options below:
250
250
@@ -277,7 +277,7 @@ The lambda is created with the following parameters:
277
277
278
278
This step is required once, if you need to update the lambda use the step 5.
279
279
280
-
####4) Invoke the Lambda
280
+
### 4) Invoke the Lambda
281
281
Now the lambda function is ready for testing. The following command invokes the lambda with using the file **event.json** contained in the project folder.
282
282
283
283
```console
@@ -301,7 +301,7 @@ Note:
301
301
302
302
The lambda invocation may require some policy to access other AWS Resources. Check the `S3Test` example to know more.
303
303
304
-
####5) Update the Lambda (optional)
304
+
### 5) Update the Lambda (optional)
305
305
306
306
If needed, you will also be able to update your Lambda using one of the commands below:
307
307
@@ -317,6 +317,24 @@ make update_lambda_with_s3
317
317
make update_lambda
318
318
```
319
319
320
+
### 6) Nuclear option
321
+
322
+
Sometimes you want to go back to a clean slate and we have a command for that which will rely on the parameters you use.
323
+
324
+
```console
325
+
make nuke
326
+
```
327
+
328
+
That command will clean your local build folders then delete lambdas and layers created based off the configuration you use.
329
+
330
+
### 7) Delete S3 bucket
331
+
332
+
You can delete the S3 bucket where you hold your lambdas and layers with the command below:
333
+
334
+
```console
335
+
make delete_s3_bucket
336
+
```
337
+
320
338
# Update the lambda layer
321
339
322
340
The docker image could require security updates or could require updates.
0 commit comments