lambda
claranet/lambda/aws
Terraform module for AWS Lambda functions
terraform-aws-lambda This Terraform module creates and uploads an AWS Lambda function and hides the ugly parts from you. Features Only appears in the Terraform plan when there are legitimate changes. Creates a standard IAM role and policy for CloudWatch Logs. You can add additional policies if required. Zips up a source file or directory. Installs dependencies from requirements.txt for Python functions. It only does this when necessary, not every time. Requirements Python 2.7 or higher Linux/Unix/Windows Terraform version compatibility | Module version | Terraform version | |----------------|-------------------| | 1.x.x | 0.12.x | | 0.x.x | 0.11.x | Usage ``js module "lambda" { source = "github.com/claranet/terraform-aws-lambda" function_name = "deployment-deploy-status" description = "Dep
| Name | Type | Description | Default |
|---|---|---|---|
| policy | object({ json = string } | An additional policy to attach to the Lambda function role | required |
| reserved_concurrent_executions | number | required | |
| function_name | string | required | |
| source_path | string | The absolute path to a local file or directory containing your Lambda source cod | required |
| kms_key_arn | string | required | |
| dead_letter_config | object({ target_arn = stri | required | |
| handler | string | required | |
| description | string | required | |
| layers | list(string) | required | |
| tags | map(string) | required | |
| environment | object({ variables = map(s | required | |
| runtime | string | required | |
| vpc_config | object({ security_group_id | required | |
| tracing_config | object({ mode = string } | required | |
| memory_size | number | required | |
| trusted_entities | list(string) | Lambda function additional trusted entities for assuming roles (trust relationsh | [] |
| build_paths | list(string) | The files or directories used by the build command, to trigger new Lambda packag | [
"build.py"
] |
| cloudwatch_logs | bool | Set this to false to disable logging your Lambda output to CloudWatch Logs | true |
| enabled | bool | Enable or disable the Lambda resources. | true |
| build_command | string | The command to run to create the Lambda package zip file | "python build.py '$filename' '$runtime' |
| lambda_at_edge | bool | Set this to true if using Lambda@Edge, to enable publishing, limit the timeout, | false |
| publish | bool | false | |
| timeout | number | 3 |
function_name — The name of the Lambda functionfunction_qualified_arn — The qualified ARN of the Lambda functionrole_arn — The ARN of the IAM role created for the Lambda functionrole_name — The name of the IAM role created for the Lambda functionfunction_arn — The ARN of the Lambda functionfunction_invoke_arn — The Invoke ARN of the Lambda function