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
+14-4Lines changed: 14 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -146,14 +146,24 @@ Edit the `Makefile` to build a different Example by commenting the following lin
146
146
```
147
147
...
148
148
149
-
SWIFT_EXECUTABLE=HelloWorld
150
-
SWIFT_PROJECT_PATH=Examples/HelloWorld
151
-
LAMBDA_FUNCTION_NAME=HelloWorld
152
-
LAMBDA_HANDLER=$(SWIFT_EXECUTABLE).helloWorld
149
+
SWIFT_EXECUTABLE?=HelloWorld
150
+
SWIFT_PROJECT_PATH?=Examples/HelloWorld
151
+
LAMBDA_FUNCTION_NAME?=HelloWorld
152
+
LAMBDA_HANDLER?=$(SWIFT_EXECUTABLE).helloWorld
153
153
154
154
...
155
155
```
156
156
157
+
You can also override these by passing values in the make command like below.
158
+
159
+
```
160
+
SWIFT_EXECUTABLE=HTTPSRequest \
161
+
SWIFT_PROJECT_PATH=Examples/HTTPSRequest \
162
+
LAMBDA_FUNCTION_NAME=HTTPSRequest \
163
+
LAMBDA_HANDLER=${SWIFT_EXECUTABLE}.getHttps \
164
+
make invoke_lambda
165
+
```
166
+
157
167
# Lambda Deployment Workflow
158
168
159
169
The folowing tutorial describes how to deploy the lambda in your AWS account from the command line using [AWS Command Line Interface](https://docs.aws.amazon.com/cli/latest/userguide/cli-chap-welcome.html) through the `Makefile`.
0 commit comments