Skip to content

Commit c463620

Browse files
author
Graham Krizek
committed
Add example.sh
1 parent d105d0d commit c463620

File tree

2 files changed

+16
-7
lines changed

2 files changed

+16
-7
lines changed

example.sh

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -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

Lines changed: 0 additions & 7 deletions
This file was deleted.

0 commit comments

Comments
 (0)