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.
1 parent d105d0d commit c463620Copy full SHA for c463620
example.sh
@@ -0,0 +1,16 @@
1
+
2
+handler () {
3
+ set -e
4
5
+ # This is the Event Data
6
+ echo $EVENT_DATA
7
8
+ # Example of command usage
9
+ EVENT_JSON=$(echo $EVENT_DATA | jq .)
10
11
+ # Example of AWS command that's output will show up in CloudWatch Logs
12
+ aws s3 ls s3://bucket
13
14
+ # This is the return value because it's being sent to stderr (>&2)
15
+ echo "{\"success\": true}" >&2
16
+}
index.sh
0 commit comments