Skip to content

serverless function to check if you have made a commit to github today

Notifications You must be signed in to change notification settings

DioneJM/commit-checker

Repository files navigation

Development

Prerequisites

  • An SNS_TOPIC_ARN environment variable must be set for the SNS topic that you want to use
  • AWS Lambda must have permission to publish on SNS ARN

Create Stack

sam deploy -t package.yaml --guided

note: requires samconfig.toml - see docs for more info

How to build and release:

Run the release.sh script under scripts/ directory

From project root:

./scripts/release.sh

How to invoke lambda

aws lambda invoke --cli-binary-format raw-in-base64-out --function-name commit-checker-stack-CommitChecker-lVlrMRBDMr6X --payload '{"date": "2022-01-02T18:44:49Z" }' output.json && cat output.json

Clean up

Delete Stack

aws cloudformation delete-stack --stack_name <value>

About

serverless function to check if you have made a commit to github today

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published