Skip to content

hadenlabs/terraform-aws-lambda

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Latest Release Lint CI Test pre-commit Conventional Commits KeepAChangelog Terraform Version

terraform-aws-lambda

Terraform module to provision an aws lambda.

Requirements

This is a list of plugins that need to be installed previously to enjoy all the goodies of this configuration:

Usage

How to use this project

  module "main" {
    source  = "hadenlabs/terraform-aws-lambda/aws"
    version = "0.1.1"
  }

Full working examples can be found in examples folder.

Examples

common

  module "main" {
    source  = "hadenlabs/terraform-aws-lambda/aws"
    version = "0.1.1"
  }

Requirements

Name Version
terraform >= 0.12.20, < 2.0
aws >=3.2.0
null >=0.1.0

Providers

Name Version
archive n/a
aws >=3.2.0

Modules

Name Source Version
label hadenlabs/tags/null 0.1.1

Resources

Name Type
aws_cloudwatch_log_group.this resource
aws_lambda_function.this resource
archive_file.this data source

Inputs

Name Description Type Default Required
code_location Folder code string n/a yes
environments Environment variables for lambda function map(any) {} no
handler The handler name of the lambda (a function defined in your lambda) string n/a yes
memory memory ram for lambda number 128 no
name The name of the lambda to create, which also defines (i) the archive name (.zip), (ii) the file name, and (iii) the function name string n/a yes
namespace The namespace of project string n/a yes
role IAM role attached to the Lambda Function (ARN) string n/a yes
runtime The runtime of the lambda to create string "nodejs12.x" no
sg_ids Security groups list(string) [] no
stage The name of stage (dev,staging,prod) string n/a yes
subnets Subnets list(string) [] no
tags The tags for add resources map(any) {} no
timeout timeout in minutes number 3 no

Outputs

Name Description
function_name n/a
instance output instance repository
invoke_arn n/a
lambda_arn ARN of function lambda
name name aws lambda

Help

Got a question?

File a GitHub issue.

Contributing

See Contributing.

Module Versioning

This Module follows the principles of Semantic Versioning (SemVer).

Using the given version number of MAJOR.MINOR.PATCH, we apply the following constructs:

  1. Use the MAJOR version for incompatible changes.
  2. Use the MINOR version when adding functionality in a backwards compatible manner.
  3. Use the PATCH version when introducing backwards compatible bug fixes.

Backwards compatibility in 0.0.z and 0.y.z version

  • In the context of initial development, backwards compatibility in versions 0.0.z is not guaranteed when z is increased. (Initial development)
  • In the context of pre-release, backwards compatibility in versions 0.y.z is not guaranteed when y is increased. (Pre-release)

Copyright

Copyright Β© 2018-2022 Hadenlabs

Trademarks

All other trademarks referenced herein are the property of their respective owners.

License

The code and styles are licensed under the LGPL-3.0 license See project license..

Don't forget to 🌟 Star 🌟 the repo if you like terraform-aws-lambda

Your feedback is appreciated