aws-lambda

Adaptavist/aws-lambda/module

Terraform Module HCL MODULE
Install
module "aws-lambda" {
source = "Adaptavist/aws-lambda/module"
version = "1.35.8"
}
plain text: /constructs/tfmod-adaptavist-aws-lambda-module/install.txt
⭐ Source on GitHub 📦 Registry page
README

AWS Lambda This module creates a set of AWS Lambda resources including the packaging of function code. - AWS Lambda function - AWS Lambda IAM role - (optional) SSM IAM policy to allow the function access to a specified set of SSM parameters - (optional) KMS IAM policy to allow the function access to the KMS key used for decryption - (optional) VPC attachment IAM policy to allow the function access to VPC resources - (optional) Adds X-Ray write only policy if tracing is enabled Providers | Name | Version | |------|---------| | archive | n/a | | aws | n/a | Modules | Name | Source | Version | |------|--------|---------| | labels | cloudposse/label/null | 0.25.0 | Resources | Name | Type | |------|------| | aws_cloudwatch_log_group.this | resource | | aws_iam_policy.kms_policy | resource | |

Inputs (29)
NameTypeDescriptionDefault
timeoutstringtimeout required
function_namestringA unique name for the lambda function. required
stagestring required
handlerstringThe function entrypoint. required
runtimestringThe runtime environment for the Lambda function. Valid Values: nodejs10.x | node required
namespacestring required
tagsmap(string) required
descriptionstringA description of the lambda function. required
aws_regionstringAWS Region required
lambda_code_dirstringA directory containing the code that needs to be packaged."src"
environment_variablesmap(string)Environment variables{}
enable_tracingboolEnable tracing of requests. If tracing is enabled, tracing mode needs to be specfalse
enable_cloudwatch_logsboolEnable cloudwatch logstrue
memory_sizestringAmount of memory in MB your Lambda Function can use at runtime"128"
reserved_concurrent_executionsnumberThe amount of reserved concurrent executions for this lambda function. A value o-1
cloudwatch_retention_in_daysnumberThe number of days you want to retain log events in lambda's log group14
publish_lambdaboolWhether to publish creation/change as new Lambda Function Version.false
assume_role_policy_principleslist(string)Principles which can assume the lambdas role.[ "lambda.amazonaws.com", "edgelambd
vpc_subnet_idslist(string)Allows the function to access VPC subnets (if both 'subnet_ids' and 'security_gr[]
vpc_security_group_idslist(string)Allows the function to access VPC (if both 'subnet_ids' and 'security_group_ids'[]
layerslist(string)Expected Layers to attach to the lambda[]
architectureslist(string)Instruction set architecture for your Lambda function.[ "x86_64" ]
cloudwatch_kms_key_arnstringThe ARN of the KMS Key to use when encrypting log datanull
disable_label_function_name_prefixboolIndicates if prefixing of the lambda function name should be disabled. Defaults false
kms_key_arnstringKMS key used for decryption""
ssm_parameter_nameslist(string)Names of SSM parameters that lambda will be able to access[]
namestring"function"
include_regionboolIf set to true the current providers region will be appended to any global AWS rfalse
tracing_modestringRequired if tracing is enabled. Possible values: PassThrough or Active. See httpnull
Outputs (12)
lambda_name — The name of the lambda function
lambda_arn — The ARN of the lambda function
lambda_invoke_arn — The invoke ARN of the lambda function
lambda_kms_key_arn — The ARN for the KMS encryption key of lambda function
lambda_qualified_arn — The ARN identifying lambda function version
lambda_version — Latest published version of lambda function
lambda_last_modified — The date lambda function resource was last modified
lambda_source_code_hash — Base64-encoded representation of raw SHA-256 sum of the zip file
lambda_source_code_size — The size in bytes of the function .zip file
lambda_role_arn — The ARN of the IAM role created for the lambda function
lambda_role_name — The Name of the IAM role created for the lambda function
cloudwatch_log_group_arn — The ARN of the cloudwatch log group
Resources (6)
aws_cloudwatch_log_groupaws_iam_policyaws_iam_roleaws_iam_role_policy_attachmentaws_kms_keyaws_lambda_function
Details
FrameworkTerraform Module
LanguageHCL
Version1.35.8
Cloud MODULE
★ Stars2
Forks1
Total downloads1.8M
Inputs29
Outputs12
Resources6
NamespaceAdaptavist
Updated