Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/cloudandthings/terraform-aws-redis-layer


https://github.com/cloudandthings/terraform-aws-redis-layer

Last synced: 7 days ago
JSON representation

Awesome Lists containing this project

README

        

# terraform-aws-redis-layer

A Lambda layer built using [yumda](https://github.com/lambci/yumda). The package is committed

The layer.zip was created:
```
mkdir layer
docker run --rm -v "$PWD"/layer:/lambda/opt lambci/yumda:2 yum install -y redis
cd layer
zip -yr ../layer.zip .
```

## Using `redis-cli`

```python

import json
import os

def lambda_handler(event, context):

print(os.system('/opt/bin/redis-cli --help'))
return {
'statusCode': 200,
}
```