FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
aws-lambda-developer-guide/sample-apps/java-basic/3-invoke.sh at main · awsdocs/aws-lambda-developer-guide · GitHub
Uh oh!
There was an error while loading.
Please reload this page
.
awsdocs
/
aws-lambda-developer-guide
Public
Notifications
You must be signed in to change notification settings
Fork
1.7k
Star
2.6k
Code
Issues
24
Pull requests
35
Actions
Projects
Security and quality
0
Insights
Additional navigation options
Code
Issues
Pull requests
Actions
Projects
Security and quality
Insights
Expand file tree
Breadcrumbs
aws-lambda-developer-guide
/
sample-apps
/
java-basic
/
3-invoke.sh
Copy path
More file actions
More file actions
Latest commit
History
History
History
executable file
·
38 lines (34 loc) · 740 Bytes
Breadcrumbs
aws-lambda-developer-guide
/
sample-apps
/
java-basic
/
3-invoke.sh
Copy path
File metadata and controls
executable file
·
38 lines (34 loc) · 740 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
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
#!
/bin/bash
set
-eo pipefail
FUNCTION=
$(
aws cloudformation describe-stack-resource --stack-name java-basic --logical-resource-id
function
--query
'
StackResourceDetail.PhysicalResourceId
'
--output text)
if
[
$1
]
then
case
$1
in
string)
PAYLOAD=
'
"MYSTRING"
'
;;
int | integer)
PAYLOAD=12345
;;
list)
PAYLOAD=
'
[24,25,26]
'
;;
divide)
PAYLOAD=
'
[235241,17]
'
;;
*
)
echo
-n
"
Unknown event type
"
;;
esac
fi
while
true
;
do
if
[
$PAYLOAD
]
then
aws lambda invoke --function-name
$FUNCTION
--payload
$PAYLOAD
out.json
else
aws lambda invoke --function-name
$FUNCTION
--payload fileb://event.json out.json
fi
cat out.json
echo
"
"
sleep 2
done
Back
|
FazBrowse Home
|
New Git URL