We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 4458b0c + f1514b1 commit b1bc3fbCopy full SHA for b1bc3fb
Examples/Streaming/README.md
@@ -74,6 +74,20 @@ swift package archive --allow-network-connections docker
74
If there is no error, there is a ZIP file ready to deploy.
75
The ZIP file is located at `.build/plugins/AWSLambdaPackager/outputs/AWSLambdaPackager/StreamingNumbers/StreamingNumbers.zip`
76
77
+## Test locally
78
+
79
+You can test the function locally before deploying:
80
81
+```bash
82
+swift run
83
84
+# In another terminal, test with curl:
85
+curl -v \
86
+ --header "Content-Type: application/json" \
87
+ --data '"this is not used"' \
88
+ http://127.0.0.1:7000/invoke
89
+```
90
91
## Deploy with the AWS CLI
92
93
Here is how to deploy using the `aws` command line.
0 commit comments