Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
badra001 committed Jan 26, 2022
1 parent ca7ac23 commit a2b689a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cloudwatch.tf
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ resource "aws_cloudwatch_event_target" "ec2_target" {
count = var.create ? 1 : 0
target_id = local.name
arn = var.create ? aws_lambda_function.lambda[0].arn : null
rule = var.crate ? aws_cloudwatch_event_rule.ec2_rule[0].name : null
rule = var.create ? aws_cloudwatch_event_rule.ec2_rule[0].name : null
}

resource "aws_lambda_permission" "allow_cloudwatch" {
Expand Down

0 comments on commit a2b689a

Please sign in to comment.