Skip to content

cloudandthings/terraform-aws-redis-layer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

terraform-aws-redis-layer

A Lambda layer built using 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

import json
import os 

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