Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 7 additions & 2 deletions main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,13 @@ module "lambda" {
image_config_working_directory = var.image_config_working_directory
snap_start = var.snap_start

create_current_version_allowed_triggers = var.create_current_version_allowed_triggers
allowed_triggers = var.allowed_triggers
create_current_version_allowed_triggers = var.create_current_version_allowed_triggers
create_async_event_config = var.create_async_event_config
create_current_version_async_event_config = var.create_current_version_async_event_config
create_unqualified_alias_async_event_config = var.create_unqualified_alias_async_event_config
destination_on_failure = var.destination_on_failure
destination_on_success = var.destination_on_success
allowed_triggers = var.allowed_triggers

create_lambda_function_url = var.create_lambda_function_url
create_unqualified_alias_lambda_function_url = var.create_unqualified_alias_lambda_function_url
Expand Down
31 changes: 31 additions & 0 deletions variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -477,3 +477,34 @@ variable "enable_lambda_update_evt_src_mapping" {
type = bool
default = false
}

// async
variable "create_async_event_config" {
description = "Whether to create async event configuration for Lambda Function"
type = bool
default = false
}

variable "create_current_version_async_event_config" {
description = "Whether to create async event configuration for current version of Lambda Function (this will revoke async event configuration from previous version because Terraform manages only current resources)"
type = bool
default = true
}

variable "create_unqualified_alias_async_event_config" {
description = "Whether to create async event configuration for unqualified alias pointing to $LATEST version of Lambda Function"
type = bool
default = true
}

variable "destination_on_failure" {
description = "The Amazon Resource Name (ARN) of the destination resource for failed invocations."
type = string
default = null
}

variable "destination_on_success" {
description = "The Amazon Resource Name (ARN) of the destination resource for successful invocations."
type = string
default = null
}
Loading