/terraform-aws-lambda

A simple module for creation of lambda

Primary LanguageHCL

Requirements

No requirements.

Providers

Name Version
archive n/a
aws n/a

Modules

No modules.

Resources

Name Type
aws_cloudwatch_event_rule.this resource
aws_cloudwatch_event_target.this resource
aws_iam_role.this resource
aws_lambda_function.this resource
aws_lambda_permission.allow_cloudevent_lambda resource
archive_file.this data source
aws_iam_policy_document.assume_role_policy data source
aws_iam_policy_document.cloud_watch_logs data source

Inputs

Name Description Type Default Required
cloudwatch_event_description Name of cloud watch event_name string "Launch a lambda" no
cloudwatch_event_event_pattern Event pattern for schedule (json) string null no
cloudwatch_event_is_enabled If you want to disable your cloudwatch event bool true no
cloudwatch_event_name Name of cloud watch event_name string "" no
cloudwatch_event_schedule_expression Cron expression of schedule string null no
cloudwatch_event_target_id Target id of cloudwatch event string null no
create_cloudwatch_event If you want to create a cloud watch event bool true no
description description of the lambda string null no
function_name Function name of the lambda string n/a yes
handler Function entrypoint in your code string n/a yes
iam_role_name Iam role name string "" no
inline_policy_name Inline Policy Name string "lambda_policy" no
policy Policy of the lambda string n/a yes
runtime Runtime of lambda function, eg: python3.8 string n/a yes
source_content Content file of the lambda string n/a yes
source_content_filename filename of source content string n/a yes
timeout timeout of lambda function number 3 no

Outputs

No outputs.