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

Commit 1709610

Browse files
author
CodingNagger
committed
Add documentation for S3 upload
1 parent 348d7be commit 1709610

File tree

1 file changed

+32
-5
lines changed

1 file changed

+32
-5
lines changed

README.md

Lines changed: 32 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -224,17 +224,36 @@ It would be better to restrict the policy to the function and layer you want to
224224
It's suggested to test the following scripts before using in production.
225225

226226
#### 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
228230

229231
```console
230-
make upload_lambda_layer
232+
make upload_lambda_layer_with_s3
231233
```
232234

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+
```
234242

235243
#### 2) Create the Lambda
236244

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+
238257
```console
239258
make create_lambda
240259
```
@@ -280,12 +299,20 @@ The lambda invocation may require some policy to access other AWS Resources. Che
280299

281300
#### 5) Update the Lambda (optional)
282301

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
284305

285306
```console
286307
make update_lambda
287308
```
288309

310+
##### Update the Lambda directly
311+
312+
```console
313+
make update_lambda_with_s3
314+
```
315+
289316
# Contributions
290317

291318
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)