Skip to content

Commit

Permalink
remove tags on event target
Browse files Browse the repository at this point in the history
  • Loading branch information
badra001 committed Jan 26, 2022
1 parent 828a17f commit c680098
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions cloudwatch.tf
Original file line number Diff line number Diff line change
Expand Up @@ -38,17 +38,17 @@ resource "aws_cloudwatch_event_rule" "ec2_rule" {
}

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.create ? aws_cloudwatch_event_rule.ec2_rule[0].name : null
propagate_tags = true

tags = merge(
local.base_tags,
var.tags,
map("Name", local.name),
)
count = var.create ? 1 : 0
target_id = local.name
arn = var.create ? aws_lambda_function.lambda[0].arn : null
rule = var.create ? aws_cloudwatch_event_rule.ec2_rule[0].name : null
# propagate_tags = true

# tags = merge(
# local.base_tags,
# var.tags,
# map("Name", local.name),
# )
}

resource "aws_lambda_permission" "allow_cloudwatch" {
Expand Down

0 comments on commit c680098

Please sign in to comment.