Skip to content

alestic/lambda-echo

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 

lambda-echo

This AWS Lambda function prints its input event to the console.log (available in CloudWatch Logs).

This is useful for debugging basic interactions with AWS Lambda. For example, you can subscribe this AWS Lambda function to an SNS Topic to see all the messages being published to that topic.

Install AWS Lambda function, IAM role, policy

./lambda-echo-install

Delete AWS Lambda function, IAM role, policy

./lambda-echo-uninstall

Test

sudo apt-get install jq # For JSON Parsing

aws lambda invoke \
    --function-name lambda-echo \
    --log-type Tail \
    --payload '{ "message" : "hello, world" }' \
    /dev/null |
  jq -r '.LogResult' |
  base64-decode 

About

AWS Lambda function that outputs the input event to the console (CloudWatch Logs). Useful for debugging

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published