Skip to content

Commit 54a3d93

Browse files
authored
Fix invoke example for Windows CMD (#604)
* Fix invoke example for Windows * Fix invoke example for Windows CMD * Fix invoke example for Windows CMD * Add note on handling quotes in different shells * Add shorter note on handling quotes in different shells * Moved note closer to first invoke * moved note closer to invoke
1 parent 17ef2a2 commit 54a3d93

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -142,6 +142,9 @@ cargo lambda invoke --remote \
142142
my-first-lambda-function
143143
```
144144

145+
> **Note**
146+
> CLI commands in the examples use Linux/MacOS syntax. For different shells like Windows CMD or PowerShell, modify syntax when using nested quotation marks like `'{"command": "hi"}'`. Escaping with a backslash may be necessary. See [AWS CLI Reference](https://docs.amazonaws.cn/en_us/cli/latest/userguide/cli-usage-parameters-quoting-strings.html#cli-usage-parameters-quoting-strings-containing) for more information.
147+
145148
#### 2.2. Deploying with the AWS CLI
146149

147150
You can also use the AWS CLI to deploy your Rust functions. First, you will need to create a ZIP archive of your function. Cargo Lambda can do that for you automatically when it builds your binary if you add the `output-format` flag:

0 commit comments

Comments
 (0)