Terraform module to provision an aws lambda.
This is a list of plugins that need to be installed previously to enjoy all the goodies of this configuration:
module "main" {
source = "hadenlabs/terraform-aws-lambda/aws"
version = "0.1.1"
}
Full working examples can be found in examples folder.
module "main" {
source = "hadenlabs/terraform-aws-lambda/aws"
version = "0.1.1"
}
Name | Version |
---|---|
terraform | >= 0.12.20, < 2.0 |
aws | >=3.2.0 |
null | >=0.1.0 |
Name | Version |
---|---|
archive | n/a |
aws | >=3.2.0 |
Name | Source | Version |
---|---|---|
label | hadenlabs/tags/null | 0.1.1 |
Name | Type |
---|---|
aws_cloudwatch_log_group.this | resource |
aws_lambda_function.this | resource |
archive_file.this | data source |
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 |
Name | Description |
---|---|
function_name | n/a |
instance | output instance repository |
invoke_arn | n/a |
lambda_arn | ARN of function lambda |
name | name aws lambda |
Got a question?
File a GitHub issue.
See Contributing.
This Module follows the principles of Semantic Versioning (SemVer).
Using the given version number of MAJOR.MINOR.PATCH
, we apply the following constructs:
- Use the
MAJOR
version for incompatible changes. - Use the
MINOR
version when adding functionality in a backwards compatible manner. - Use the
PATCH
version when introducing backwards compatible bug fixes.
- In the context of initial development, backwards compatibility in versions
0.0.z
is not guaranteed whenz
is increased. (Initial development) - In the context of pre-release, backwards compatibility in versions
0.y.z
is not guaranteed wheny
is increased. (Pre-release)
Copyright Β© 2018-2022 Hadenlabs
All other trademarks referenced herein are the property of their respective owners.
The code and styles are licensed under the LGPL-3.0 license See project license..