mirror of
https://github.com/swift-server/swift-aws-lambda-runtime.git
synced 2026-06-02 07:27:33 +00:00
14 lines
639 B
Bash
14 lines
639 B
Bash
# --region the AWS Region to send the command
|
|
# --function-name the name of your function
|
|
# --cli-binary-format tells the cli to use raw data as input (default is base64)
|
|
# --payload the payload to pass to your function code
|
|
# result.json the name of the file to store the response from the function
|
|
|
|
aws lambda invoke \
|
|
--region us-west-2 \
|
|
--function-name PalindromeLambda \
|
|
--cli-binary-format raw-in-base64-out \
|
|
--payload '{"text": "Was it a car or a cat I saw?"}' \
|
|
result.json
|
|
|