Skip to content

Commit

Permalink
feat: Support `aws_lambda_event_source_mapping.document_db_event_sour…
Browse files Browse the repository at this point in the history
…ce_config` (#626)

Co-authored-by: Anton Babenko <[email protected]>
  • Loading branch information
magreenbaum and antonbabenko authored Oct 5, 2024
1 parent 9be9b1a commit 5d48199
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -393,6 +393,16 @@ resource "aws_lambda_event_source_mapping" "this" {
}
}
}

dynamic "document_db_event_source_config" {
for_each = try(each.value.document_db_event_source_config, [])

content {
database_name = document_db_event_source_config.value.database_name
collection_name = try(document_db_event_source_config.value.collection_name, null)
full_document = try(document_db_event_source_config.value.full_document, null)
}
}
}

resource "aws_lambda_function_url" "this" {
Expand Down

0 comments on commit 5d48199

Please sign in to comment.