Skip to content

Latest commit

 

History

History
28 lines (24 loc) · 951 Bytes

README.md

File metadata and controls

28 lines (24 loc) · 951 Bytes

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>