Skip to content

Commit 5fc117d

Browse files
Apply suggestions from code review
Co-authored-by: Anton Babenko <[email protected]>
1 parent c6c1585 commit 5fc117d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

main.tf

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -449,9 +449,9 @@ resource "aws_lambda_function_url" "this" {
449449
}
450450

451451
resource "aws_lambda_function_recursion_config" "this" {
452-
count = local.create && var.recursive_loop == "Allow" ? 1 : 0
452+
count = local.create && var.create_function && !var.create_layer && var.recursive_loop == "Allow" ? 1 : 0
453453

454-
function_name = var.function_name
454+
function_name = aws_lambda_function.this[0].function_name
455455
recursive_loop = var.recursive_loop
456456

457457
depends_on = [

0 commit comments

Comments
 (0)