FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
bash-lambda-layer/examples/example-basic.sh at master · leppikallio/bash-lambda-layer · GitHub
leppikallio
/
bash-lambda-layer
Public
forked from
gkrizek/bash-lambda-layer
Notifications
You must be signed in to change notification settings
Fork
0
Star
0
Code
Pull requests
0
Actions
Projects
Security and quality
0
Insights
Additional navigation options
Code
Pull requests
Actions
Projects
Security and quality
Insights
Expand file tree
Breadcrumbs
bash-lambda-layer
/
examples
/
example-basic.sh
Copy path
More file actions
More file actions
Latest commit
History
History
History
executable file
·
19 lines (13 loc) · 415 Bytes
Breadcrumbs
bash-lambda-layer
/
examples
/
example-basic.sh
Copy path
File metadata and controls
executable file
·
19 lines (13 loc) · 415 Bytes
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
handler
() {
set
-e
#
Event Data is sent as the first parameter
EVENT_DATA=
$1
#
This is the Event Data
echo
$EVENT_DATA
#
Example of command usage
EVENT_JSON=
$(
echo
$EVENT_DATA
|
jq .
)
#
Example of AWS command that's output will show up in CloudWatch Logs
aws s3 ls
#
This is the return value because it's being sent to stderr (>&2)
echo
"
{
\"
success
\"
: true}
"
>&2
}
Back
|
FazBrowse Home
|
New Git URL