aws-lambda
Adaptavist/aws-lambda/module
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 | |
| Name | Type | Description | Default |
|---|---|---|---|
| timeout | string | timeout | required |
| function_name | string | A unique name for the lambda function. | required |
| stage | string | required | |
| handler | string | The function entrypoint. | required |
| runtime | string | The runtime environment for the Lambda function. Valid Values: nodejs10.x | node | required |
| namespace | string | required | |
| tags | map(string) | required | |
| description | string | A description of the lambda function. | required |
| aws_region | string | AWS Region | required |
| lambda_code_dir | string | A directory containing the code that needs to be packaged. | "src" |
| environment_variables | map(string) | Environment variables | {} |
| enable_tracing | bool | Enable tracing of requests. If tracing is enabled, tracing mode needs to be spec | false |
| enable_cloudwatch_logs | bool | Enable cloudwatch logs | true |
| memory_size | string | Amount of memory in MB your Lambda Function can use at runtime | "128" |
| reserved_concurrent_executions | number | The amount of reserved concurrent executions for this lambda function. A value o | -1 |
| cloudwatch_retention_in_days | number | The number of days you want to retain log events in lambda's log group | 14 |
| publish_lambda | bool | Whether to publish creation/change as new Lambda Function Version. | false |
| assume_role_policy_principles | list(string) | Principles which can assume the lambdas role. | [
"lambda.amazonaws.com",
"edgelambd |
| vpc_subnet_ids | list(string) | Allows the function to access VPC subnets (if both 'subnet_ids' and 'security_gr | [] |
| vpc_security_group_ids | list(string) | Allows the function to access VPC (if both 'subnet_ids' and 'security_group_ids' | [] |
| layers | list(string) | Expected Layers to attach to the lambda | [] |
| architectures | list(string) | Instruction set architecture for your Lambda function. | [
"x86_64"
] |
| cloudwatch_kms_key_arn | string | The ARN of the KMS Key to use when encrypting log data | null |
| disable_label_function_name_prefix | bool | Indicates if prefixing of the lambda function name should be disabled. Defaults | false |
| kms_key_arn | string | KMS key used for decryption | "" |
| ssm_parameter_names | list(string) | Names of SSM parameters that lambda will be able to access | [] |
| name | string | "function" | |
| include_region | bool | If set to true the current providers region will be appended to any global AWS r | false |
| tracing_mode | string | Required if tracing is enabled. Possible values: PassThrough or Active. See http | null |
lambda_name — The name of the lambda functionlambda_arn — The ARN of the lambda functionlambda_invoke_arn — The invoke ARN of the lambda functionlambda_kms_key_arn — The ARN for the KMS encryption key of lambda functionlambda_qualified_arn — The ARN identifying lambda function versionlambda_version — Latest published version of lambda functionlambda_last_modified — The date lambda function resource was last modifiedlambda_source_code_hash — Base64-encoded representation of raw SHA-256 sum of the zip filelambda_source_code_size — The size in bytes of the function .zip filelambda_role_arn — The ARN of the IAM role created for the lambda functionlambda_role_name — The Name of the IAM role created for the lambda functioncloudwatch_log_group_arn — The ARN of the cloudwatch log group