Skip to content

Commit

Permalink
Merge pull request #2 from onemedical/ops_bug
Browse files Browse the repository at this point in the history
fix s3_event_notification_name condition
  • Loading branch information
Svetlanko authored Jul 17, 2023
2 parents ad8988f + 382577c commit e3b489a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion anti-virus-scan.tf
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ resource "aws_s3_bucket_notification" "main_scan" {
bucket = element(data.aws_s3_bucket.main_scan.*.id, count.index)

lambda_function {
id = var.s3_event_notification_name ? var.s3_event_notification_name : element(data.aws_s3_bucket.main_scan.*.id, count.index)
id = var.s3_event_notification_name == null ? element(data.aws_s3_bucket.main_scan.*.id, count.index) : var.s3_event_notification_name
lambda_function_arn = aws_lambda_function.main_scan.arn
events = ["s3:ObjectCreated:*"]
}
Expand Down
2 changes: 1 addition & 1 deletion version
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
# Incrementing the version number below will trigger a
# release tag with that version to be created automatically.
3.0.1
3.0.2

0 comments on commit e3b489a

Please sign in to comment.