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
+32-5Lines changed: 32 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -224,17 +224,36 @@ It would be better to restrict the policy to the function and layer you want to
224
224
It's suggested to test the following scripts before using in production.
225
225
226
226
#### 1) Upload the Lambda layer
227
-
Create a new lambda layer using the `swift-lambda-runtime.zip` file:
227
+
Create a new lambda layer using the `swift-lambda-runtime.zip` file. This step is required once, however you are free to run it if you need to update your layer.
228
+
229
+
##### Upload the Lambda using S3
228
230
229
231
```console
230
-
make upload_lambda_layer
232
+
make upload_lambda_layer_with_s3
231
233
```
232
234
233
-
This step is required once, or if you need to update the layer.
235
+
Datetime based versions are created and uploaded to S3 every time your version is created.
236
+
237
+
##### Upload the Lambda directly
238
+
239
+
```console
240
+
make upload_lambda_layer
241
+
```
234
242
235
243
#### 2) Create the Lambda
236
244
237
-
Create a new lambda, this might take a few minutes:
245
+
You can create a new lambda which might take a few minutes using one of the options below:
246
+
247
+
##### Create the Lambda using S3
248
+
249
+
```console
250
+
make create_lambda_with_s3
251
+
```
252
+
253
+
Datetime based versions are created and uploaded to S3 every time your version is created.
254
+
255
+
##### Create the Lambda directly
256
+
238
257
```console
239
258
make create_lambda
240
259
```
@@ -280,12 +299,20 @@ The lambda invocation may require some policy to access other AWS Resources. Che
280
299
281
300
#### 5) Update the Lambda (optional)
282
301
283
-
If it's required to update the lambda code, launch the following command:
302
+
If needed, you will also be able to update your Lambda using one of the commands below:
303
+
304
+
##### Update the Lambda using S3
284
305
285
306
```console
286
307
make update_lambda
287
308
```
288
309
310
+
##### Update the Lambda directly
311
+
312
+
```console
313
+
make update_lambda_with_s3
314
+
```
315
+
289
316
# Contributions
290
317
291
318
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