userhas404d / terraform-aws-lambda-layer

Automated lambda layer creation with terraform and docker

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Create Layer Module

Terraform module to programmatically create lambda layers

Overview

This module will automate the creation of lambda layers for python projects provided the following:

  • the target project contains a requirements.layers.txt file.
  • A dockerfile the supports the installation of the requirements.layers.txt file has been specified

Note: By default the target Dockerfile has been configured to use amazonlinux as its base but a user specified docker file is supported.

As currently implemented this project is designed to support layer creation for the python-ldap project

Requirements

No requirements.

Providers

Name Version
external n/a
null n/a

Inputs

Name Description Type Default Required
layer_description Description to associate with the resulting layer string n/a yes
layer_name Name to associate with the resulting layer string n/a yes
additional_docker_bindmounts (Optional) List of additional bind mounts to provide the layer creation docker image list(string) [] no
compatible_runtimes (Optional) A list of Runtimes this layer is compatible with. Up to 5 runtimes can be specified. list(string) [] no
docker_commands (Optional) additional commands to run in the docker container list(string) [] no
docker_image_name (Optional) Name to assign to the docker image string "" no
dockerfile (Optional) Full file path to the dockerfile in which the layer will be created string "" no
layer_build_command (Optional) command to send to the docker image to trigger the layer creation string "" no
layer_build_script (Optional) Full file path to the layer build script string "" no
target_lambda_path (Optional) Full file path to the target lambda function string "" no

Outputs

Name Description
layer_arn n/a

About

Automated lambda layer creation with terraform and docker


Languages

Language:HCL 43.8%Language:Makefile 35.5%Language:Shell 20.8%