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
> Replace "aarch64" with "x86_64" if you are building for x86_64
106
106
### 2. Deploying the binary to AWS Lambda
107
107
108
108
For [a custom runtime](https://docs.aws.amazon.com/lambda/latest/dg/runtimes-custom.html), AWS Lambda looks for an executable called `bootstrap` in the deployment package zip. Rename the generated executable to `bootstrap` and add it to a zip archive.
> Make sure to replace the execution role with an existing role in your account!
170
170
171
171
You can now test the function using the AWS CLI or the AWS Lambda console
@@ -179,8 +179,8 @@ $ aws lambda invoke
179
179
$ cat output.json # Prints: {"msg": "Command Say Hi! executed."}
180
180
```
181
181
182
-
**Note:**`--cli-binary-format raw-in-base64-out` is a required
183
-
argument when using the AWS CLI version 2. [More Information](https://docs.aws.amazon.com/cli/latest/userguide/cliv2-migration.html#cliv2-migration-binaryparam)
182
+
> **Note**
183
+
> `--cli-binary-format raw-in-base64-out` is a required argument when using the AWS CLI version 2. [More Information](https://docs.aws.amazon.com/cli/latest/userguide/cliv2-migration.html#cliv2-migration-binaryparam)
184
184
185
185
#### 2.3. AWS Serverless Application Model (SAM)
186
186
@@ -360,7 +360,8 @@ curl -v -X POST \
360
360
-d '{ "command": "hi" }'
361
361
```
362
362
363
-
> **warning** Do not remove the `content-type` header. It is necessary to instruct the function how to deserialize the request body.
363
+
> **Warning**
364
+
> Do not remove the `content-type` header. It is necessary to instruct the function how to deserialize the request body.
364
365
365
366
You can read more about how [cargo lambda watch](https://www.cargo-lambda.info/commands/watch.html) and [cargo lambda invoke](https://www.cargo-lambda.info/commands/invoke.html) work on the project's [documentation page](https://www.cargo-lambda.info).
0 commit comments