Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/d-w-arnold/aws-lambda-examples

AWS Lambda function source code, and test harness.
https://github.com/d-w-arnold/aws-lambda-examples

aws-lambda boto3 lambda-functions python3 testing

Last synced: 9 days ago
JSON representation

AWS Lambda function source code, and test harness.

Awesome Lists containing this project

README

        

# aws-lambda-examples

What is [AWS Lambda](https://aws.amazon.com/lambda/)?

This repo is a submodule of: [aws-cdk-examples](https://github.com/d-w-arnold/aws-cdk-examples)

### Add Git Hooks

See `pre-push` shell script in `hooks/`.

When pushing to the `main` branch, a push is successful unless Black formatter returns a non-zero exit code, in which it
will show the diff regarding what Black would change.

To utilise this pre-push git hook, run the following commands in the project root directory:

(Submodule repo)

```bash
# Copy all repo git hooks.
cp -av hooks/* ../.git/modules/aws-lambda/hooks

# Set all git hooks to executable, if not already set.
chmod +x ../.git/modules/aws-lambda/hooks/*
```

(Stand-alone repo)

```bash
# Copy all repo git hooks.
cp -av hooks/* .git/hooks

# Set all git hooks to executable, if not already set.
chmod +x .git/hooks/*
```